Skip to content

Commit 7abb0ef

Browse files
committed
fixup! Moar
1 parent dcf4c89 commit 7abb0ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LibGit2Sharp/Network.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public virtual IEnumerable<DirectReference> ListReferences(Remote remote, Creden
7272

7373
using (RemoteSafeHandle remoteHandle = Proxy.git_remote_lookup(repository.Handle, remote.Name, true))
7474
{
75-
GitRemoteCallbacks gitCallbacks = new GitRemoteCallbacks();
75+
var gitCallbacks = new GitRemoteCallbacks {version = 1};
7676

7777
if (credentialsProvider != null)
7878
{
@@ -102,7 +102,7 @@ public virtual IEnumerable<DirectReference> ListReferences(string url)
102102

103103
using (RemoteSafeHandle remoteHandle = Proxy.git_remote_create_anonymous(repository.Handle, url, null))
104104
{
105-
GitRemoteCallbacks gitCallbacks = new GitRemoteCallbacks();
105+
GitRemoteCallbacks gitCallbacks = new GitRemoteCallbacks { version = 1 };
106106
Proxy.git_remote_connect(remoteHandle, GitDirection.Fetch, ref gitCallbacks);
107107
return Proxy.git_remote_ls(repository, remoteHandle);
108108
}

0 commit comments

Comments
 (0)