Skip to content

Fold git_push_unpack_ok() into git_push_finish() #2756

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

Merged
merged 2 commits into from
Dec 10, 2014

Conversation

carlosmn
Copy link
Member

Coming from #2628 fold the unpack_ok() error into finish() as we shouldn't have a successful return code if we sent a bad packfile or the server errored out.

This also updates the documentation to hopefully better explain what the function's error reporting is about.

The push cannot be successful if we sent a bad packfile. We should
return an error in that case instead of storing it elsewhere.
This should make it clearer what the return value implies.
@ethomson
Copy link
Member

Yeah, I think this clarifies things a lot.

ethomson added a commit that referenced this pull request Dec 10, 2014
Fold `git_push_unpack_ok()` into `git_push_finish()`
@ethomson ethomson merged commit 4eb97ef into master Dec 10, 2014
@carlosmn carlosmn deleted the cmn/push-error-concerns branch December 14, 2014 22:06
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

Successfully merging this pull request may close these issues.

2 participants