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

[PATCH] post-receive-email: suppress error if description file missing

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Feb 2, 2011, 17:42 UTC
Message-ID
<20110202174242.GA12470@atcmail.atc.tcs.com>
---
 contrib/hooks/post-receive-email |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
index f99ea95..71f2b47 100755
--- a/contrib/hooks/post-receive-email
+++ b/contrib/hooks/post-receive-email
@@ -709,7 +709,7 @@ if [ -z "$GIT_DIR" ]; then
 	exit 1
 fi
 
-projectdesc=$(sed -ne '1p' "$GIT_DIR/description")
+projectdesc=$(sed -ne '1p' "$GIT_DIR/description 2>/dev/null")
 # 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.7.3.4
Next: Junio C Hamano
Message 1 of 3 in “post-receive-email: suppress error if description file missing”
  1. post-receive-email: suppress error if description file missingSitaram Chamarty, Feb 2, 2011
  2. Junio C HamanoFeb 2, 2011
  3. Sitaram ChamartyFeb 3, 2011

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.