From: Sitaram Chamarty Date: Thu, 3 Feb 2011 01:00:32 +0000 (+0530) Subject: post-receive-email: suppress error if description file missing X-Git-Tag: v1.7.4.1~14 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=80aa55b40ba36a4d0c43d6348a2831b0c6f17e62;p=git.git post-receive-email: suppress error if description file missing Signed-off-by: Sitaram Chamarty Signed-off-by: Junio C Hamano --- diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email index f99ea9585..21989fc6a 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