@matheusbsbs / matheus-bagliano / commits / b8ac23bcf8
Fork 0

Fix quoting in update hook template

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>

Gerrit Pape committed Mar 2, 2007 at 12:20 UTC b8ac23bcf82e67ccc56b90217c68d7a46b4b2bbc
1 file changed +1 -1
templates/hooks--update
+1 -1
@@ -64,7 +64,7 @@ case "$refname","$newrev_type" in
64 # un-annotated tag
65 refname_type="tag"
66 short_refname=${refname##refs/tags/}
67 - if [ $allowunannotated != "true" ]; then
67 + if [ "$allowunannotated" != "true" ]; then
68 echo "*** The un-annotated tag, $short_refname is not allowed in this repository" >&2
69 echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
70 exit 1