summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorThorsten Glaser <t.glaser@tarent.de>2013-08-30 12:40:30 +0200
committerJunio C Hamano <gitster@pobox.com>2013-08-30 09:56:30 -0700
commit6897a64b652d83e477389ec1a248b47b8d821db6 (patch)
treebadc1f7e1cd053e0d8d84419e071a81265bf6f18 /templates
parentf59bebb78edb26e4f66c2754bc4d168c5d4ebb4a (diff)
downloadgit-6897a64b652d83e477389ec1a248b47b8d821db6.tar.gz
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