Code

variable $projectdesc needs to be set before checking against unchanged default.
authorGerrit Pape <pape@smarden.org>
Mon, 16 Apr 2007 08:30:42 +0000 (08:30 +0000)
committerJunio C Hamano <junkio@cox.net>
Mon, 16 Apr 2007 08:35:33 +0000 (01:35 -0700)
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
templates/hooks--update

index 0ff03309e69aed6b506e333e087f23099ad80290..0dcb1adb132d5d127bc6c693bac1528cb567e517 100644 (file)
@@ -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