Fix bug where GTPushTransferProgressBlock is unused#508
Merged
joshaber merged 3 commits intolibgit2:masterfrom Aug 14, 2015
Merged
Fix bug where GTPushTransferProgressBlock is unused#508joshaber merged 3 commits intolibgit2:masterfrom
joshaber merged 3 commits intolibgit2:masterfrom
Conversation
Member
|
Awesome, thanks! It looks like there are a couple tests that need to be updated: |
Member
|
I've been wondering why the progress blocks didn't get called in those tests. Thanks for the fix @dleehr! |
Contributor
Author
|
Thanks @joshaber. I updated the tests. Actually the block will be called once at the end of the push with this change. libgit2/libgit2#3377 will fix it so that it's called regularly during the push too (at least in smart protocol) |
Member
|
🤘 |
joshaber
added a commit
that referenced
this pull request
Aug 14, 2015
Fix bug where GTPushTransferProgressBlock is unused
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In
pushRefspecs:toRemote:withOptions, the remote_callbacks struct was incorrectly configured and the push_transfer_progress callback was not set. This caused the user-provided GTRemotePushTransferProgressBlock to never be used, since it was bound toGTRemotePushTransferProgressCallback, which was not set in the struct.This change fixes the bug in objective-git, but there's a very similar bug in libgit2 that results in the callback only being called once for smart protocol pushes, at the end - fixed in libgit2/libgit2#3377