Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
variable $projectdesc needs to be set before checking against unchanged default.
author
Gerrit Pape
<pape@smarden.org>
Mon, 16 Apr 2007 08:30:42 +0000
(08:30 +0000)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 16 Apr 2007 08:35:33 +0000
(
01:35
-0700)
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
templates/hooks--update
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
635f4a3
)
diff --git
a/templates/hooks--update
b/templates/hooks--update
index 0ff03309e69aed6b506e333e087f23099ad80290..0dcb1adb132d5d127bc6c693bac1528cb567e517 100644
(file)
--- a/
templates/hooks--update
+++ b/
templates/hooks--update
@@
-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