update_tips: report error if it fails to create a ref
diff --git a/src/remote.c b/src/remote.c
index 00e108a..e46249e 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -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);