mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
update_tips: report error if it fails to create a ref
This commit is contained in:
@@ -377,7 +377,7 @@ int git_remote_update_tips(git_remote *remote, int (*cb)(const char *refname, co
|
||||
continue;
|
||||
|
||||
if (git_reference_create_oid(&ref, remote->repo, refname.ptr, &head->oid, 1) < 0)
|
||||
break;
|
||||
goto on_error;
|
||||
|
||||
git_reference_free(ref);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user