зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
5d6b151fdd
Коммит
b81ba57124
|
@ -19,7 +19,7 @@ ref_type=$(git cat-file -t "$3")
|
||||||
case "$1","$ref_type" in
|
case "$1","$ref_type" in
|
||||||
refs/tags/*,commit)
|
refs/tags/*,commit)
|
||||||
echo "*** Un-annotated tags are not allowed in this repo" >&2
|
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;;
|
exit 1;;
|
||||||
refs/tags/*,tag)
|
refs/tags/*,tag)
|
||||||
echo "### Pushing version '${1##refs/tags/}' to the masses" >&2
|
echo "### Pushing version '${1##refs/tags/}' to the masses" >&2
|
||||||
|
|
Загрузка…
Ссылка в новой задаче