Skip to content

Commit 7f9673e

Browse files
committed
fetch: Fixed spurious update callback for existing tags.
1 parent f0ee795 commit 7f9673e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/remote.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,11 @@ static int update_tips_for_spec(
14231423
/* In autotag mode, don't overwrite any locally-existing tags */
14241424
error = git_reference_create(&ref, remote->repo, refname.ptr, &head->oid, !autotag,
14251425
log_message);
1426-
if (error < 0 && error != GIT_EEXISTS)
1426+
1427+
if (error == GIT_EEXISTS)
1428+
continue;
1429+
1430+
if (error < 0)
14271431
goto on_error;
14281432

14291433
git_reference_free(ref);

0 commit comments

Comments
 (0)