Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Glaser <t.glaser@tarent.de>2013-08-30 14:40:30 +0400
committerJunio C Hamano <gitster@pobox.com>2013-08-30 20:56:30 +0400
commit6897a64b652d83e477389ec1a248b47b8d821db6 (patch)
treebadc1f7e1cd053e0d8d84419e071a81265bf6f18 /templates
parentf59bebb78edb26e4f66c2754bc4d168c5d4ebb4a (diff)
fix shell syntax error in template
An if clause must not be empty; add a "colon" command. Signed-off-by: Thorsten Glaser <t.glaser@tarent.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/hooks--pre-push.sample1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/hooks--pre-push.sample b/templates/hooks--pre-push.sample
index 15ab6d8e7e..1f3bcebfd7 100755
--- a/templates/hooks--pre-push.sample
+++ b/templates/hooks--pre-push.sample
@@ -30,6 +30,7 @@ do
if [ "$local_sha" = $z40 ]
then
# Handle delete
+ :
else
if [ "$remote_sha" = $z40 ]
then