mirror of
https://github.com/git/git
synced 2024-08-28 20:20:07 +00:00
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>
This commit is contained in:
parent
c91897b3b0
commit
80aa55b40b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue