Removed extra check to find if wrapfs remote was present or not
authorrohit <rohit>
Tue, 10 Apr 2018 15:57:01 +0000 (15:57 +0000)
committerrohit <rohit>
Tue, 10 Apr 2018 15:57:01 +0000 (15:57 +0000)
wrapfs-fix-branch.sh

index a7f9a883f503f0ef33c147498efa885ebf4e0820..a77189412577ca5d74dffcdafce135c8ed92ef1c 100755 (executable)
@@ -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