fix shell syntax error in template
authorThorsten Glaser <t.glaser@tarent.de>
Fri, 30 Aug 2013 10:40:30 +0000 (12:40 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Aug 2013 16:56:30 +0000 (09:56 -0700)
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>
templates/hooks--pre-push.sample
index 15ab6d8e7ea05ca54f0b755828e166fafe9bc28c..1f3bcebfd76ae1b37e1542631a87e5a5e3e6b1eb 100755 (executable)
@@ -30,6 +30,7 @@ do
        if [ "$local_sha" = $z40 ]
        then
                # Handle delete
+               :
        else
                if [ "$remote_sha" = $z40 ]
                then