From b78ae80464d2ed1e0f5b4b8edf1c78686362a832 Mon Sep 17 00:00:00 2001 From: Eoin Motherway Date: Tue, 21 Sep 2021 08:50:00 +1000 Subject: [PATCH] Fix git_remote_connect not throwing on non-zero result --- LibGit2Sharp/Core/Proxy.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/LibGit2Sharp/Core/Proxy.cs b/LibGit2Sharp/Core/Proxy.cs index ca9a69f6d..580c9872a 100644 --- a/LibGit2Sharp/Core/Proxy.cs +++ b/LibGit2Sharp/Core/Proxy.cs @@ -2172,6 +2172,7 @@ public static unsafe void git_remote_connect(RemoteHandle remote, GitDirection d catch (Exception) { customHeaders.Dispose(); + throw; } }