[gnome-builder] git: remote connect/disconnect code from push



commit f9bf3a2c1f4cc45c5e16263bac046558fd783ac1
Author: Christian Hergert <chergert redhat com>
Date:   Sun May 5 19:55:32 2019 -0700

    git: remote connect/disconnect code from push
    
    We don't need this here, as ggit_remote_push() should handle
    that for us.

 src/plugins/git/daemon/ipc-git-repository-impl.c | 15 ---------------
 1 file changed, 15 deletions(-)
---
diff --git a/src/plugins/git/daemon/ipc-git-repository-impl.c 
b/src/plugins/git/daemon/ipc-git-repository-impl.c
index 2e7d24e7d..00d8cf483 100644
--- a/src/plugins/git/daemon/ipc-git-repository-impl.c
+++ b/src/plugins/git/daemon/ipc-git-repository-impl.c
@@ -750,26 +750,11 @@ push_worker (GTask        *task,
   g_assert (GGIT_IS_REMOTE (push->remote));
   g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
 
-  ggit_remote_connect (push->remote,
-                       GGIT_DIRECTION_PUSH,
-                       push->callbacks,
-                       push->proxy_options,
-                       NULL,
-                       &error);
-
-  if (error != NULL)
-    {
-      g_task_return_error (task, g_steal_pointer (&error));
-      return;
-    }
-
   ggit_remote_push (push->remote,
                     (const gchar * const *)push->ref_names,
                     push->push_options,
                     &error);
 
-  ggit_remote_disconnect (push->remote);
-
   if (error != NULL)
     g_task_return_error (task, g_steal_pointer (&error));
   else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]