summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eecc836)
raw | patch | inline | side by side (parent: eecc836)
author | Gerrit Pape <pape@smarden.org> | |
Fri, 2 Mar 2007 12:20:10 +0000 (12:20 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 2 Mar 2007 23:11:52 +0000 (15:11 -0800) |
By default allowunannotated is unset in the repo config, hence
$allowunannotated is empty, and must be quoted to not break the syntax.
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
$allowunannotated is empty, and must be quoted to not break the syntax.
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
templates/hooks--update | patch | blob | history |
index e8c536fb616d9fe93fe50edf4bc862b58ad6af1b..555bd5f53249119c54f032137d7f59a859b7d2ce 100644 (file)
--- a/templates/hooks--update
+++ b/templates/hooks--update
# un-annotated tag
refname_type="tag"
short_refname=${refname##refs/tags/}
- if [ $allowunannotated != "true" ]; then
+ if [ "$allowunannotated" != "true" ]; then
echo "*** The un-annotated tag, $short_refname is not allowed in this repository" >&2
echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
exit 1