Skip to content

Commit 886b74a

Browse files
committed
GitProxyOptions: pass correct version number
libgit2 began enforcing the correct version number in the proxy options structure; pass the correct version.
1 parent 719f96d commit 886b74a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LibGit2Sharp/Core/GitProxyOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ internal enum GitProxyType
1111
}
1212

1313
[StructLayout(LayoutKind.Sequential)]
14-
internal struct GitProxyOptions
14+
internal class GitProxyOptions
1515
{
16-
public uint Version;
16+
public uint Version = 1;
1717
public GitProxyType Type;
1818
public IntPtr Url;
1919
public IntPtr CredentialsCb;

0 commit comments

Comments
 (0)