Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LibGit2Sharp/Commands/Fetch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static void Fetch(Repository repository, string remote, IEnumerable<strin
fetchOptions.CustomHeaders = GitStrArrayManaged.BuildFrom(options.CustomHeaders);
}

fetchOptions.ProxyOptions = new GitProxyOptions { Version = 1 };
fetchOptions.ProxyOptions = new GitProxyOptions { Version = 1};

Proxy.git_remote_fetch(remoteHandle, refspecs, fetchOptions, logMessage);
}
Expand Down
2 changes: 1 addition & 1 deletion LibGit2Sharp/Core/GitProxyOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal enum GitProxyType
internal struct GitProxyOptions
{
public uint Version;
public GitProxyType Type;
public GitProxyType Type= GitProxyType.Auto;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code without format

public IntPtr Url;
public IntPtr CredentialsCb;
public IntPtr CertificateCheck;
Expand Down