From f0db49b17a83bdcdfb2531685a8f4aeb9796ee10 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 14 Dec 2018 15:50:02 +0800 Subject: [PATCH] Clone.bjs Clone.vala --- Clone.bjs | 2 +- Clone.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Clone.bjs b/Clone.bjs index f8bb494d..980fec2b 100644 --- a/Clone.bjs +++ b/Clone.bjs @@ -53,7 +53,7 @@ }, { "listeners" : { - "button_press_event" : "() => {\n \n var repo = _this.reposel.selectedRepo();\n GitMonitor.gitmonitor.stop();\n \n \n string[] args = { \"git\" , \"--no-pager\" , \"clone\" };\n \n args += (\"http://git.roojs.com/\" + repo );\n \n \n\n string[] env = {};\n string home = \"HOME=\" + Environment.get_home_dir() ;\n env += home ;\n \t\t//v.push(\"GITPATH=\" + this.repo );\n //}\n \n var cfg = new SpawnConfig(Environment.get_home_dir() + \"/gitlive\" , args , env);\n //cfg.debug = true;\n\n // may throw error...\n var sp = new Spawn(cfg);\n \n \t GLib.debug(\"Spawn: %s\", sp.output);\n\t\n \n \n \n \n \n GitMonitor.gitmonitor.start();\n \n \n _this.el.hide();\n return false;\n}" + "button_press_event" : "() => {\n \n var repo = _this.reposel.selectedRepo();\n GitMonitor.gitmonitor.stop();\n \n \n string[] args = { \"git\" , \"--no-pager\" , \"clone\" };\n \n args += (\"http://git.roojs.com/\" + repo );\n \n \n\n string[] env = {};\n string home = \"HOME=\" + Environment.get_home_dir() ;\n env += home ;\n \t\t//v.push(\"GITPATH=\" + this.repo );\n //}\n \n var cfg = new SpawnConfig(Environment.get_home_dir() + \"/gitlive\" , args , env);\n //cfg.debug = true;\n\n // may throw error...\n var sp = new Spawn(cfg);\n \n \t GLib.debug(\"Spawn: %s\", sp.output);\n\t\n \n \n \n \n \n GitMonitor.gitmonitor.start();\n Clones.singleton().reposStore.load();\n \n _this.el.hide();\n return false;\n}" }, "label" : "Checkout", "xtype" : "Button", diff --git a/Clone.vala b/Clone.vala index b8d7481b..510c46f1 100644 --- a/Clone.vala +++ b/Clone.vala @@ -268,7 +268,7 @@ public class Clone : Object GitMonitor.gitmonitor.start(); - + Clones.singleton().reposStore.load(); _this.el.hide(); return false; -- 2.39.2