@matheusbsbs / matheus-bagliano / commits / 7eae7b993e
Fork 0

Fix "git-fetch --tags" exit status when nothing has been changed

After commit 55b7835e1b81a6debc7648149d2b8a4c5c64ddba 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>

Sergey Vlasov committed Jul 14, 2006 at 19:06 UTC 7eae7b993ec3c1f5dfeb78d79673627b48d5f772
1 file changed +1 -1
git-fetch.sh
+1 -1
@@ -153,7 +153,7 @@ fast_forward_local () {
153 then
154 if now_=$(cat "$GIT_DIR/$1") && test "$now_" = "$2"
155 then
156 - [ "$verbose" ] && echo >&2 "* $1: same as $3"
156 + [ "$verbose" ] && echo >&2 "* $1: same as $3" ||:
157 else
158 echo >&2 "* $1: updating with $3"
159 git-update-ref -m "$rloga: updating tag" "$1" "$2"