Skip to content

Commit 5946d88

Browse files
g-papeJunio C Hamano
authored andcommitted
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>
1 parent 635f4a3 commit 5946d88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/hooks--update

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ fi
3434
allowunannotated=$(git-repo-config --bool hooks.allowunannotated)
3535

3636
# check for no description
37+
projectdesc=$(sed -e '1p' "$GIT_DIR/description")
3738
if [ -z "$projectdesc" -o "$projectdesc" = "Unnamed repository; edit this file to name it for gitweb" ]; then
3839
echo "*** Project description file hasn't been set" >&2
3940
exit 1

0 commit comments

Comments
 (0)