8000 git_remote_push() needs to handle push rejection · libgit2 libgit2 · Discussion #6832 · GitHub
[go: up one dir, main page]

Skip to content

git_remote_push() needs to handle push rejection #6832

Answered by lrm29
anatol asked this question in Q&A
Discussion options

You must be logged in to vote

I can provide a solution for you: The callback you need to register is git_push_update_reference_cb: https://libgit2.org/libgit2/#HEAD/group/callback/git_push_update_reference_cb. status will contain the rejection message you see.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ethomson
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #6831 on June 14, 2024 20:49.

0