Skip to content

Commit 4fa581f

Browse files
committed
1 parent 0b31090 commit 4fa581f

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

LibGit2Sharp/Network.cs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -248,19 +248,11 @@ public virtual void Push(
248248
GitRemoteCallbacks gitCallbacks = callbacks.GenerateCallbacks();
249249
Proxy.git_remote_set_callbacks(remoteHandle, ref gitCallbacks);
250250

251-
try
252-
{
253-
Proxy.git_remote_connect(remoteHandle, GitDirection.Push);
254-
Proxy.git_remote_push(remoteHandle, pushRefSpecs,
255-
new GitPushOptions()
256-
{
257-
PackbuilderDegreeOfParallelism = pushOptions.PackbuilderDegreeOfParallelism
258-
});
259-
}
260-
finally
261-
{
262-
Proxy.git_remote_disconnect(remoteHandle);
263-
}
251+
Proxy.git_remote_push(remoteHandle, pushRefSpecs,
252+
new GitPushOptions()
253+
{
254+
PackbuilderDegreeOfParallelism = pushOptions.PackbuilderDegreeOfParallelism
255+
});
264256
}
265257
}
266258

0 commit comments

Comments
 (0)