Skip to content

Commit 4808bec

Browse files
author
Junio C Hamano
committed
Merge branch 'maint'
* maint: Fix quoting in update hook template
2 parents 5e00f6f + b8ac23b commit 4808bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/hooks--update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ case "$refname","$newrev_type" in
6464
# un-annotated tag
6565
refname_type="tag"
6666
short_refname=${refname##refs/tags/}
67-
if [ $allowunannotated != "true" ]; then
67+
if [ "$allowunannotated" != "true" ]; then
6868
echo "*** The un-annotated tag, $short_refname is not allowed in this repository" >&2
6969
echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
7070
exit 1

0 commit comments

Comments
 (0)