Skip to content

Commit

Permalink
update hook: redirect _both_ diagnostic lines to stderr upon tag failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jim Meyering authored and Junio C Hamano committed Dec 28, 2006
1 parent 5d6b151 commit b81ba57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/hooks--update
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ref_type=$(git cat-file -t "$3")
case "$1","$ref_type" in
refs/tags/*,commit)
echo "*** Un-annotated tags are not allowed in this repo" >&2
echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate."
echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
exit 1;;
refs/tags/*,tag)
echo "### Pushing version '${1##refs/tags/}' to the masses" >&2
Expand Down

0 comments on commit b81ba57

Please sign in to comment.