summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 53d149c)
raw | patch | inline | side by side (parent: 53d149c)
author | Gerrit Pape <pape@smarden.org> | |
Thu, 8 Nov 2007 14:02:00 +0000 (14:02 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Nov 2007 22:15:32 +0000 (14:15 -0800) |
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>
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>
templates/hooks--update | patch | blob | history |
index d8c76264beaf198f1f3558ca8429349c8eab9ead..7e4d6270a80f4ebf175137259fc5d7a8cf98f382 100644 (file)
--- a/templates/hooks--update
+++ b/templates/hooks--update
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