diff options
author | Edward Thomson <ethomson@github.com> | 2016-06-14 11:42:00 -1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-14 11:42:00 -1000 |
commit | abb6f72aaacd4edb4131d1bdb8d0965bd189ee82 (patch) | |
tree | dceb301867d96a9ec2fd183689bd7dd552ab2f0d | |
parent | 2a09de91a80425a8646f7764e333a5ac385c7a0f (diff) | |
parent | 7f9673e4151bdfcb7d9ace8438332b934f57a710 (diff) | |
download | libgit2-abb6f72aaacd4edb4131d1bdb8d0965bd189ee82.tar.gz |
Merge pull request #3812 from stinb/fetch-tag-update-callback
fetch: Fixed spurious update callback for existing tags.
-rw-r--r-- | src/remote.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/remote.c b/src/remote.c index 5ff7f6826..a408acb3e 100644 --- a/src/remote.c +++ b/src/remote.c @@ -1423,7 +1423,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); |