From: Gerrit Pape Date: Thu, 8 Nov 2007 14:02:00 +0000 (+0000) Subject: hooks--update: fix test for properly set up project description file X-Git-Tag: v1.5.4-rc0~248 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1756fed9ee849c687f92cac30d86d2955d8c94c4;p=git.git hooks--update: fix test for properly set up project description file The update hook template intends to abort if the project description file hasn't been adjusted or is empty. This patch fixes the check for 'being adjusted'. Signed-off-by: Gerrit Pape Signed-off-by: Junio C Hamano --- diff --git a/templates/hooks--update b/templates/hooks--update index d8c76264b..7e4d6270a 100644 --- a/templates/hooks--update +++ b/templates/hooks--update @@ -34,8 +34,8 @@ fi allowunannotated=$(git-repo-config --bool hooks.allowunannotated) # check for no description -projectdesc=$(sed -e '1p' "$GIT_DIR/description") -if [ -z "$projectdesc" -o "$projectdesc" = "Unnamed repository; edit this file to name it for gitweb" ]; then +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +if [ -z "$projectdesc" -o "$projectdesc" = "Unnamed repository; edit this file to name it for gitweb." ]; then echo "*** Project description file hasn't been set" >&2 exit 1 fi