Skip to content

Commit 7eae7b9

Browse files
sigprofJunio C Hamano
authored andcommitted
Fix "git-fetch --tags" exit status when nothing has been changed
After commit 55b7835 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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d5b9e6c commit 7eae7b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-fetch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ fast_forward_local () {
153153
then
154154
if now_=$(cat "$GIT_DIR/$1") && test "$now_" = "$2"
155155
then
156-
[ "$verbose" ] && echo >&2 "* $1: same as $3"
156+
[ "$verbose" ] && echo >&2 "* $1: same as $3" ||:
157157
else
158158
echo >&2 "* $1: updating with $3"
159159
git-update-ref -m "$rloga: updating tag" "$1" "$2"

0 commit comments

Comments
 (0)