summaryrefslogtreecommitdiff
path: root/src/libgit2/push.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-05-10 22:50:16 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-05-11 13:30:08 +0100
commit0e7ab1c4968629b8d42c193eebda48ef146d8e77 (patch)
treeff246ac9ddc5bef47d25a9d5b5da2e9402f02d64 /src/libgit2/push.c
parent2bbcdee6b666f34e83d1cf9ca9badc66258202d6 (diff)
downloadlibgit2-ethomson/update_tips_spec.tar.gz
remote: add git_refspec to update_tipsethomson/update_tips_spec
Diffstat (limited to 'src/libgit2/push.c')
-rw-r--r--src/libgit2/push.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libgit2/push.c b/src/libgit2/push.c
index 8b47abc24..b7ac38b73 100644
--- a/src/libgit2/push.c
+++ b/src/libgit2/push.c
@@ -215,10 +215,12 @@ int git_push_update_tips(git_push *push, const git_remote_callbacks *callbacks)
if (fire_callback && callbacks && callbacks->update_tips) {
error = callbacks->update_tips(git_str_cstr(&remote_ref_name),
- &push_spec->roid, &push_spec->loid, callbacks->payload);
+ &push_spec->roid, &push_spec->loid, &push_spec->refspec, callbacks->payload);
- if (error < 0)
+ if (error < 0) {
+ git_error_set_after_callback_function(error, "git_remote_push");
goto on_error;
+ }
}
}