@matheusbsbs / matheus-bagliano / commits / 1756fed9ee
Fork 0

hooks--update: fix test for properly set up project description file

The update hook template intends to abort if the project description file hasn't been adjusted or is empty. This patch fixes the check for 'being adjusted'. Signed-off-by: Gerrit Pape <pape@smarden.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Gerrit Pape committed Nov 8, 2007 at 14:02 UTC 1756fed9ee849c687f92cac30d86d2955d8c94c4
1 file changed +2 -2
templates/hooks--update
+2 -2
@@ -34,8 +34,8 @@ 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
37 +projectdesc=$(sed -e '1q' "$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
41 fi