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

[PATCH] variable $projectdesc needs to be set before checking against unchanged default.

From
Gerrit Pape <pape@smarden.org>
Date
Apr 16, 2007, 08:30 UTC
Message-ID
<20070416083042.7415.qmail@5f69bf745847ea.315fe32.mid.smarden.org>
Signed-off-by: Gerrit Pape <pape@smarden.org>
---
 templates/hooks--update |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/templates/hooks--update b/templates/hooks--update
index 0ff0330..0dcb1ad 100644
--- a/templates/hooks--update
+++ b/templates/hooks--update
@@ -34,6 +34,7 @@ fi
 allowunannotated=$(git-repo-config --bool hooks.allowunannotated)
 
 # check for no description
+projectdesc=$(sed -e '1p' "$GIT_DIR/description")
 if [ -z "$projectdesc" -o "$projectdesc" = "Unnamed repository; edit this file to name it for gitweb" ]; then
 	echo "*** Project description file hasn't been set" >&2
 	exit 1
-- 
1.5.1.1
Next: Gerrit Pape
Message 1 of 2 in “variable $projectdesc needs to be set before checking against unchanged default.”
  1. variable $projectdesc needs to be set before checking against unchanged default.Gerrit Pape, Apr 16, 2007
  2. Have sample update hook not refuse deleting a branch through push.Gerrit Pape, Apr 16, 2007

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.