Skip to content

Commit

Permalink
post-receive-email: suppress error if description file missing
Browse files Browse the repository at this point in the history
Signed-off-by: Sitaram Chamarty <sitaramc@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Sitaram Chamarty authored and Junio C Hamano committed Feb 7, 2011
1 parent c91897b commit 80aa55b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/hooks/post-receive-email
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80aa55b

Please sign in to comment.