Browse Source

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>
maint
Gerrit Pape 18 years ago committed by Junio C Hamano
parent
commit
5946d88a34
  1. 1
      templates/hooks--update

1
templates/hooks--update

@ -34,6 +34,7 @@ fi @@ -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

Loading…
Cancel
Save