Skip to content

Commit

Permalink
fix shell syntax error in template
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thorsten Glaser authored and Junio C Hamano committed Aug 30, 2013
1 parent f59bebb commit 6897a64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/hooks--pre-push.sample
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ do
if [ "$local_sha" = $z40 ]
then
# Handle delete
:
else
if [ "$remote_sha" = $z40 ]
then
Expand Down

0 comments on commit 6897a64

Please sign in to comment.