summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2014-04-30 12:26:21 (GMT)
committer Jaromil <jaromil@dyne.org>2014-04-30 12:26:21 (GMT)
commit042417ceb9dac825b02a631085bcdf62c85f5b27 (patch)
treeee59c255394be43f308f63aedbed4a7008770ba0
parentcd9cdfbb41679c16dffc97c83fdc17c7e0a79842 (diff)
back-compat with older git (fix issue #1)
-rwxr-xr-xbin/gitzone5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/gitzone b/bin/gitzone
index 2f355f5..fd5c676 100755
--- a/bin/gitzone
+++ b/bin/gitzone
@@ -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 {