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