summaryrefslogtreecommitdiff
path: root/templates/hooks--update
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2007-11-08 14:02:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-08 22:15:32 (GMT)
commit1756fed9ee849c687f92cac30d86d2955d8c94c4 (patch)
tree1f977a14bb9d5bd7b8333c9356d7d114eebe6e4a /templates/hooks--update
parent53d149c54bdedd4cf490943a5478a7826c2379c9 (diff)
downloadgit-1756fed9ee849c687f92cac30d86d2955d8c94c4.zip
git-1756fed9ee849c687f92cac30d86d2955d8c94c4.tar.gz
git-1756fed9ee849c687f92cac30d86d2955d8c94c4.tar.bz2
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>
Diffstat (limited to 'templates/hooks--update')
-rw-r--r--templates/hooks--update4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/hooks--update b/templates/hooks--update
index d8c7626..7e4d627 100644
--- a/templates/hooks--update
+++ b/templates/hooks--update
@@ -34,8 +34,8 @@ 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
+projectdesc=$(sed -e '1q' "$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
fi