projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c7fd6e6
)
Clone.bjs
author
Alan Knowles
<alan@roojs.com>
Fri, 14 Dec 2018 07:46:02 +0000
(15:46 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 14 Dec 2018 07:46:02 +0000
(15:46 +0800)
Clone.vala
Clone.bjs
patch
|
blob
|
history
Clone.vala
patch
|
blob
|
history
diff --git
a/Clone.bjs
b/Clone.bjs
index
c0ee56f
..
22c6364
100644
(file)
--- a/
Clone.bjs
+++ b/
Clone.bjs
@@
-53,7
+53,7
@@
},
{
"listeners" : {
},
{
"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\n // parse output for some commands ?\n
return sp.output;\n }\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\n // parse output for some commands ?\n \n \n \n \n GitMonitor.gitmonitor.start();\n \n \n _this.el.hide();\n return false;\n}"
},
"label" : "Checkout",
"xtype" : "Button",
},
"label" : "Checkout",
"xtype" : "Button",
diff --git
a/Clone.vala
b/Clone.vala
index
13ab584
..
c7319fd
100644
(file)
--- a/
Clone.vala
+++ b/
Clone.vala
@@
-262,10
+262,6
@@
public class Clone : Object
// parse output for some commands ?
// parse output for some commands ?
- return sp.output;
- }
-
-