variable $projectdesc needs to be set before checking against unchanged default.
Signed-off-by: Gerrit Pape <pape@smarden.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Gerrit Pape committed
Apr 16, 2007 at 08:30 UTC
5946d88a349407f2830b4d186201076b80a7cce4
1 file changed
+1
templates/hooks--update
+1
@@ -34,6 +34,7 @@ fi
34
allowunannotated=$(git-repo-config --bool hooks.allowunannotated)
35
36
# check for no description
37
+projectdesc=$(sed -e '1p' "$GIT_DIR/description")
38
if [ -z "$projectdesc" -o "$projectdesc" = "Unnamed repository; edit this file to name it for gitweb" ]; then
39
echo "*** Project description file hasn't been set" >&2
40
exit 1