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

[PATCH] contrib/hooks/post-receive-email: checks for gitweb.description

From
BRBruno Ribas <ribas@c3sl.ufpr.br>
Date
Feb 11, 2008, 20:02 UTC
Message-ID
<1202760138-24227-1-git-send-email-ribas@c3sl.ufpr.br>
Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br>
---
 contrib/hooks/post-receive-email |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
index 77c88eb..bdd21fa 100644
--- a/contrib/hooks/post-receive-email
+++ b/contrib/hooks/post-receive-email
@@ -614,7 +614,11 @@ if [ -z "$GIT_DIR" ]; then
 	exit 1
 fi
 
-projectdesc=$(sed -ne '1p' "$GIT_DIR/description")
+if [ -f "$GIT_DIR/description" ]; then
+	projectdesc=$(sed -ne '1p' "$GIT_DIR/description")
+else
+	projectdesc=$(git-config gitweb.description)
+fi
 # Check if the description is unchanged from it's default, and shorten it to
 # a more manageable length if it is
 if expr "$projectdesc" : "Unnamed repository.*$" >/dev/null
-- 
1.5.4.24.gce08d
Next: Jakub Narebski
Message 1 of 3 in “contrib/hooks/post-receive-email: checks for gitweb.description”
  1. contrib/hooks/post-receive-email: checks for gitweb.descriptionBruno Ribas, Feb 11, 2008
  2. Jakub NarebskiFeb 11, 2008
  3. BRUNO CESAR RIBASFeb 11, 2008

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.