threads / patch / 34809

patchfix shell syntax error in template

Subject: [PATCH] fix shell syntax error in template

## tl;dr

One message between Aug 30, 2013 and Aug 30, 2013. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Thorsten Glaser· Aug 30, 2013, 10:40 UTC · lore
an if clause must not be empty; add a "colon" command
Signed-off-by: Thorsten Glaser <t.glaser@tarent.de>
---
 templates/hooks--pre-push.sample | 1 +
 1 file changed, 1 insertion(+)
Show changes to templates/hooks--pre-push.sample +1 −0
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
-- 
1.8.4.rc3

← back to recent threads