Skip to content

Commit 80aa55b

Browse files
sitaramcgitster
authored andcommitted
post-receive-email: suppress error if description file missing
Signed-off-by: Sitaram Chamarty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c91897b commit 80aa55b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/hooks/post-receive-email

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ if [ -z "$GIT_DIR" ]; then
709709
exit 1
710710
fi
711711

712-
projectdesc=$(sed -ne '1p' "$GIT_DIR/description")
712+
projectdesc=$(sed -ne '1p' "$GIT_DIR/description" 2>/dev/null)
713713
# Check if the description is unchanged from it's default, and shorten it to
714714
# a more manageable length if it is
715715
if expr "$projectdesc" : "Unnamed repository.*$" >/dev/null

0 commit comments

Comments
 (0)