Skip to content

Commit b81ba57

Browse files
meyeringJunio C Hamano
authored andcommitted
update hook: redirect _both_ diagnostic lines to stderr upon tag failure
Otherwise, sending the diagnostic to stdout would provoke a protocol failure. Signed-off-by: Jim Meyering <jim@meyering.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 5d6b151 commit b81ba57

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
@@ -19,7 +19,7 @@ ref_type=$(git cat-file -t "$3")
1919
case "$1","$ref_type" in
2020
refs/tags/*,commit)
2121
echo "*** Un-annotated tags are not allowed in this repo" >&2
22-
echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate."
22+
echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
2323
exit 1;;
2424
refs/tags/*,tag)
2525
echo "### Pushing version '${1##refs/tags/}' to the masses" >&2

0 commit comments

Comments
 (0)