summaryrefslogtreecommitdiff
path: root/contrib/hooks
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaramc@gmail.com>2011-02-03 01:00:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-02-07 22:28:21 (GMT)
commit80aa55b40ba36a4d0c43d6348a2831b0c6f17e62 (patch)
tree4307783bcdfa07308cf46fe32a1a70b2fdfd2230 /contrib/hooks
parentc91897b3b074d5185c3897e7afc41aa091f6ec66 (diff)
downloadgit-80aa55b40ba36a4d0c43d6348a2831b0c6f17e62.zip
git-80aa55b40ba36a4d0c43d6348a2831b0c6f17e62.tar.gz
git-80aa55b40ba36a4d0c43d6348a2831b0c6f17e62.tar.bz2
post-receive-email: suppress error if description file missing
Signed-off-by: Sitaram Chamarty <sitaramc@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/hooks')
-rwxr-xr-xcontrib/hooks/post-receive-email2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
index f99ea95..21989fc 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