Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

push: set generic error in push_negotiation cb#6675

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethomson merged 1 commit intomainfromethomson/push_cancel
Dec 14, 2023

Conversation

ethomson
Copy link
Member

When a user returns-1 in apush_negotiation callback, we set the error to whatever's hanging out in the buffer, probably something about a missing configuration entry.

Clear the error buffer before invoking the callback, so that if a user does not set an error message in their callback that we can detect. If there is no error but-1 is returned, set a generic error message.

Fixes#6672

ilyagr reacted with hooray emoji
When a user returns `-1` in a `push_negotiation` callback, we set theerror to whatever's hanging out in the buffer, probably something abouta missing configuration entry.Clear the error buffer before invoking the callback, so that if a userdoes not set an error message in their callback that we can detect. Ifthere is no error but `-1` is returned, set a generic error message.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Returning non-zero from push_negotiation callback causes git_remote_push to fail with missing config errors
1 participant
@ethomson

[8]ページ先頭

©2009-2025 Movatter.jp