mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 22:21:37 +00:00
fetch: Fixed spurious update callback for existing tags.
This commit is contained in:
parent
f0ee795ccb
commit
7f9673e415
@ -1423,7 +1423,11 @@ static int update_tips_for_spec(
|
|||||||
/* In autotag mode, don't overwrite any locally-existing tags */
|
/* In autotag mode, don't overwrite any locally-existing tags */
|
||||||
error = git_reference_create(&ref, remote->repo, refname.ptr, &head->oid, !autotag,
|
error = git_reference_create(&ref, remote->repo, refname.ptr, &head->oid, !autotag,
|
||||||
log_message);
|
log_message);
|
||||||
if (error < 0 && error != GIT_EEXISTS)
|
|
||||||
|
if (error == GIT_EEXISTS)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (error < 0)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
|
||||||
git_reference_free(ref);
|
git_reference_free(ref);
|
||||||
|
Loading…
Reference in New Issue
Block a user