Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'LibGit2Sharp/Network.cs')
-rw-r--r--LibGit2Sharp/Network.cs18
1 files changed, 5 insertions, 13 deletions
diff --git a/LibGit2Sharp/Network.cs b/LibGit2Sharp/Network.cs
index a0216f9b..5eb1720c 100644
--- a/LibGit2Sharp/Network.cs
+++ b/LibGit2Sharp/Network.cs
@@ -404,19 +404,11 @@ namespace LibGit2Sharp
GitRemoteCallbacks gitCallbacks = callbacks.GenerateCallbacks();
Proxy.git_remote_set_callbacks(remoteHandle, ref gitCallbacks);
- try
- {
- Proxy.git_remote_connect(remoteHandle, GitDirection.Push);
- Proxy.git_remote_push(remoteHandle, pushRefSpecs,
- new GitPushOptions()
- {
- PackbuilderDegreeOfParallelism = pushOptions.PackbuilderDegreeOfParallelism
- });
- }
- finally
- {
- Proxy.git_remote_disconnect(remoteHandle);
- }
+ Proxy.git_remote_push(remoteHandle, pushRefSpecs,
+ new GitPushOptions()
+ {
+ PackbuilderDegreeOfParallelism = pushOptions.PackbuilderDegreeOfParallelism
+ });
}
}