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

Appearance settings

Fix git_remote_connect not throwing on non-zero result - #1913

#1913
Merged
bording merged 1 commit into
libgit2:masterlibgit2/libgit2sharp:masterfrom
YuKitsune:yukitsune/bug/git_remote_connect-errorsYuKitsune/libgit2sharp:yukitsune/bug/git_remote_connect-errorsCopy head branch name to clipboard
Apr 2, 2022
Merged

Fix git_remote_connect not throwing on non-zero result#1913
bording merged 1 commit into
libgit2:masterlibgit2/libgit2sharp:masterfrom
YuKitsune:yukitsune/bug/git_remote_connect-errorsYuKitsune/libgit2sharp:yukitsune/bug/git_remote_connect-errorsCopy head branch name to clipboard

Conversation

@YuKitsune

Copy link
Copy Markdown
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

bording commented Apr 2, 2022

Copy link
Copy Markdown
Member

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

bording commented Apr 2, 2022

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.