git-create-branch: bug fix for branch creation use HEAD instead of origin

This commit is contained in:
CJ 2013-07-21 12:13:37 +08:00
parent c45e2b8f5f
commit e3320e2671

View file

@ -3,7 +3,6 @@
branch=$1
test -z $branch && echo "branch required." 1>&2 && exit 1
git push origin origin:refs/heads/$branch
git push origin HEAD:refs/heads/$branch
git fetch origin
git checkout --track -b $branch origin/$branch
git pull