Fix "git-fetch --tags" exit status when nothing has been changed
After commit 55b7835e1b
git-fetch --tags
exits with status 1 when no tags have been changed, which breaks calling
git-fetch from scripts.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
d5b9e6cfa7
commit
7eae7b993e
@ -153,7 +153,7 @@ fast_forward_local () {
|
||||
then
|
||||
if now_=$(cat "$GIT_DIR/$1") && test "$now_" = "$2"
|
||||
then
|
||||
[ "$verbose" ] && echo >&2 "* $1: same as $3"
|
||||
[ "$verbose" ] && echo >&2 "* $1: same as $3" ||:
|
||||
else
|
||||
echo >&2 "* $1: updating with $3"
|
||||
git-update-ref -m "$rloga: updating tag" "$1" "$2"
|
||||
|
Loading…
Reference in New Issue
Block a user