Skip to content
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

Fix git_remote_connect not throwing on non-zero result #1913

Merged

Conversation

YuKitsune
Copy link
Contributor

Fixes #1912

Couldn't really find a good spot to add tests here, open to suggestions.

ghost pushed a commit to mendix/libgit2sharp that referenced this pull request Sep 28, 2021
ghost pushed a commit to mendix/libgit2sharp that referenced this pull request Sep 28, 2021
* Update to libgit2 v1.3.0 and bump version

* Fix git_remote_connect not throwing on non-zero result

See libgit2/libgit2sharp#1913

Co-authored-by: Eoin Motherway <eoin.motherway@octopus.com>
@bording
Copy link
Member

bording commented Apr 2, 2022

Looking at this code, I'm now wondering why it only tries to dispose customHeaders when an exception has occurred. It seems to me that it either should always be disposing, or it never actually needs to dispose.

Regardless, this PR is an improvement, so thanks for the contribution!

@bording bording merged commit 1af4954 into libgit2:master Apr 2, 2022
@bording
Copy link
Member

bording commented Apr 2, 2022

LibGit2Sharp 0.27.0-preview-0182 includes this change.

ghost pushed a commit to mendix/libgit2sharp that referenced this pull request Jul 18, 2022
* Update to libgit2 v1.3.0 and bump version

* Fix git_remote_connect not throwing on non-zero result

See libgit2/libgit2sharp#1913

Co-authored-by: Eoin Motherway <eoin.motherway@octopus.com>
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.

Proxy.git_remote_connect() hides exceptions
2 participants