summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorThorsten Glaser <t.glaser@tarent.de>2013-08-30 10:40:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-08-30 16:56:30 (GMT)
commit6897a64b652d83e477389ec1a248b47b8d821db6 (patch)
treebadc1f7e1cd053e0d8d84419e071a81265bf6f18 /templates
parentf59bebb78edb26e4f66c2754bc4d168c5d4ebb4a (diff)
downloadgit-6897a64b652d83e477389ec1a248b47b8d821db6.zip
git-6897a64b652d83e477389ec1a248b47b8d821db6.tar.gz
git-6897a64b652d83e477389ec1a248b47b8d821db6.tar.bz2
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 15ab6d8..1f3bceb 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