git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] fix shell syntax error in template

From
Thorsten Glaser <t.glaser@tarent.de>
Date
Aug 30, 2013, 10:40 UTC
Message-ID
<20130830104308.AAF467001B5@tglase.lan.tarent.de>
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(+)
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
Message 1 of 1 in “fix shell syntax error in template”
  1. fix shell syntax error in templateThorsten Glaser, Aug 30, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.