Sitaram Chamarty  committed 80aa55b

post-receive-email: suppress error if description file missing

Signed-off-by: Sitaram Chamarty <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits c91897b

Comments (0)

Files changed (1)

File contrib/hooks/post-receive-email

 	exit 1
-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