Skip to content

pygit2.RemoteCallbacks.push_update_reference doesn't get full error message #844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
danielmt opened this issue Dec 6, 2018 · 0 comments

Comments

@danielmt
Copy link

danielmt commented Dec 6, 2018

When a push fails on a pre-receive hook, which sends a error message as to why the push failed validation, the message from pygit2.RemoteCallbacks.push_update_reference is only pre-receive hook declined. Is there any way to get the full output from the failed push?

Also, if I raise an Exception on push_update_reference, it's caught somewhere else and re-raised as "GitError: git_push_status_foreach callback returned -7", so, I can't properly raise any kind of exception to clean up anything, or, output any custom error to the user. What would be the proper way, am I missing something here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant