[gnome-builder] greeter: ensure IdeVcsCloner has access to branch name



commit 23973e2fdca2e9b57e4a7e203bbc17b19c6ccab4
Author: Christian Hergert <chergert redhat com>
Date:   Wed Sep 11 11:57:07 2019 -0700

    greeter: ensure IdeVcsCloner has access to branch name
    
    This is fallout from the refactoring of clone surfaces.
    
    Fixes #1035

 src/libide/greeter/ide-clone-surface.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/libide/greeter/ide-clone-surface.c b/src/libide/greeter/ide-clone-surface.c
index 45bee94f7..5e608b27d 100644
--- a/src/libide/greeter/ide-clone-surface.c
+++ b/src/libide/greeter/ide-clone-surface.c
@@ -534,6 +534,7 @@ ide_clone_surface_clone (IdeCloneSurface *self)
   PeasPluginInfo *plugin_info;
   IdeVcsCloner *addin;
   GVariantDict dict;
+  const gchar *branch;
   const gchar *uri;
   const gchar *path;
   const gchar *module_name;
@@ -557,6 +558,10 @@ ide_clone_surface_clone (IdeCloneSurface *self)
   author = gtk_entry_get_text (self->author_entry);
   email = gtk_entry_get_text (self->email_entry);
   path = g_file_peek_path (self->destination);
+  branch = gtk_entry_get_text (self->branch_entry);
+
+  if (!ide_str_empty0 (branch))
+    g_variant_dict_insert (&dict, "branch", "s", branch);
 
   if (!ide_str_empty0 (author) && !g_str_equal (g_get_real_name (), author))
     g_variant_dict_insert (&dict, "user.name", "s", author);


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