From: rohit Date: Tue, 10 Apr 2018 15:57:01 +0000 (+0000) Subject: Removed extra check to find if wrapfs remote was present or not X-Git-Tag: ezk-review~7 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=d6eb8b7d67dc2059a8a0d222ea1297c45191feb2;p=wrapfs-mgmt.git Removed extra check to find if wrapfs remote was present or not --- diff --git a/wrapfs-fix-branch.sh b/wrapfs-fix-branch.sh index a7f9a88..a771894 100755 --- a/wrapfs-fix-branch.sh +++ b/wrapfs-fix-branch.sh @@ -101,14 +101,7 @@ runcmd git push -f origin master wrapfs_remote_branch=`git ls-remote --heads $WRAPFS_URL wrapfs` if [ -z "${wrapfs_remote_branch:+x}" ]; then echo "git remote branch wrapfs does not exists" - runcmd git push origin wrapfs runcmd git push --set-upstream wrapfs wrapfs else runcmd git branch -r fi - -# delete origin/wrapfs remote branch -origin_remote_branch=`git ls-remote --heads $WRAPFS_URL origin/wrapfs` -if [ -n "${origin_remote_branch:+x}" ]; then - runcmd git branch -r -d origin/wrapfs -fi