Skip to content

Commit

Permalink
back-compat with older git (fix issue #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Apr 30, 2014
1 parent cd9cdfb commit 042417c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/gitzone
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ sub pre_receive {
save_list_file;

# save new commits in a new branch
git 'checkout -B new';
git 'branch -f []';
git 'checkout';
# was: git 'checkout -B new';
# removed for back-compat with old git
}

sub pre_commit {
Expand Down

0 comments on commit 042417c

Please sign in to comment.