From: Gerrit Pape Date: Mon, 16 Apr 2007 08:30:42 +0000 (+0000) Subject: variable $projectdesc needs to be set before checking against unchanged default. X-Git-Tag: v1.5.1.2~18 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5946d88a349407f2830b4d186201076b80a7cce4;p=git.git variable $projectdesc needs to be set before checking against unchanged default. Signed-off-by: Gerrit Pape Signed-off-by: Junio C Hamano --- diff --git a/templates/hooks--update b/templates/hooks--update index 0ff03309e..0dcb1adb1 100644 --- a/templates/hooks--update +++ b/templates/hooks--update @@ -34,6 +34,7 @@ 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 echo "*** Project description file hasn't been set" >&2 exit 1