Skip to content

Commit

Permalink
variable $projectdesc needs to be set before checking against unchang…
Browse files Browse the repository at this point in the history
…ed default.

Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Gerrit Pape authored and Junio C Hamano committed Apr 16, 2007
1 parent 635f4a3 commit 5946d88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/hooks--update
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5946d88

Please sign in to comment.