Git fork

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>

authored by

Sitaram Chamarty and committed by
Junio C Hamano
80aa55b4 c91897b3

+1 -1
+1 -1
contrib/hooks/post-receive-email
··· 709 709 exit 1 710 710 fi 711 711 712 - projectdesc=$(sed -ne '1p' "$GIT_DIR/description") 712 + projectdesc=$(sed -ne '1p' "$GIT_DIR/description" 2>/dev/null) 713 713 # Check if the description is unchanged from it's default, and shorten it to 714 714 # a more manageable length if it is 715 715 if expr "$projectdesc" : "Unnamed repository.*$" >/dev/null