You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 onlypre-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?
The text was updated successfully, but these errors were encountered: