From e3320e267180fe7450e161da0170373313a8dda1 Mon Sep 17 00:00:00 2001 From: CJ Date: Sun, 21 Jul 2013 12:13:37 +0800 Subject: [PATCH] git-create-branch: bug fix for branch creation use HEAD instead of origin --- bin/git-create-branch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/git-create-branch b/bin/git-create-branch index fae0e19..090951c 100755 --- a/bin/git-create-branch +++ b/bin/git-create-branch @@ -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