-
Notifications
You must be signed in to change notification settings - Fork 890
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
Support OnProgress in Push / PushOptions #642
Comments
Okay, had a chance to look into the codebase. I see both For reference here are the methods I have been looking at: Usage of RemoteCallbacks in Fetch and in Push @nulltoken Would you be able to provide any pointers on this? |
Hmmm. Your approach looks sane. @carlosmn does the progress callback is also leveraged by push()? I can find traces in the smart protocol implementation, but I've never tested it. |
TBH I forget which network implementations I've tested, so I might not have tested out the libgit2 one. We do have a commit which claims to add |
Are there any tests that cover the progress callback during Fetch in libgit2, which I can look at to investigate and test for possible differences? Update: Found this example which shows that progress works with Fetch, but haven't found anything similar for Push. |
This must be the pull request you referred to right @carlosmn libgit2/libgit2#1410 I'll try to digg through this. |
@jamill I see you worked on Push progress reporting in 981f439 but as far as I can tell it only shows errors (
Is that correct? And if so have you looked at the other type of progress via |
I did not try to expose these server messages. From what I remember of the push logic, I don't think libgit2 currently reports this progress. |
Not sure if this is the one, but what about libgit2/libgit2#2284? Since it's been merged, are the progress events reported in Push now? The 0.21.0.176 doesn't seem to have them.. |
I just tested this and the I'd be happy to submit a PR for this, but not sure how you want it tested @nulltoken ? I see the |
@sitereactor did you have a chance to PR this feature? |
Is this actually merged with the current version? Because I don't see the |
I wish I had submitted a pull request for this a long time ago as now I really need it 😅 I hope its something thats easy to get through as its a simply change using functionality already available. |
Feature Request:
When pushing to a remote repository its currently possible to handle callbacks for
OnPushStatusError
OnPushTransferProgress
andOnPackBuilderProgress
but there is currently no way to handle theOnProgress
callback similar to the one that is available for Fetch (through FetchOptions).This feature request comes out of this question posted on StackOverflow:
http://stackoverflow.com/questions/22149891/remote-response-when-pushing-with-libgit2sharp
I've been looking through the code to get an idea of how this should be implemented, and I'll post back with a pull request and/or additional questions once I get into it.
The text was updated successfully, but these errors were encountered: