//listeners
this.el.button_press_event.connect( () => {
-
+ _this.el.hide();
+ Clones.singleton().el.hide();
var repo = _this.reposel.selectedRepo();
GitMonitor.gitmonitor.stop();
args += ("http://git.roojs.com/" + repo );
-
- for (var i = 0; i < args_in.length;i++) {
- args += args_in[i];
- }
-
- //this.lastCmd = args.join(" ");
- //if(this.debug) {
- GLib.debug( "CWD=%s", this.git_working_dir );
- GLib.debug( "cmd: %s", string.joinv (" ", args));
- //}
+
string[] env = {};
string home = "HOME=" + Environment.get_home_dir() ;
env += home ;
- // do not need to set gitpath..
- //if (File.exists(this.repo + '/.git/config')) {
- //env.push("GITPATH=" + this.repo );
+ //v.push("GITPATH=" + this.repo );
//}
- var cfg = new SpawnConfig(this.git_working_dir , args , env);
+ var cfg = new SpawnConfig(Environment.get_home_dir() + "/gitlive" , args , env);
//cfg.debug = true;
// may throw error...
var sp = new Spawn(cfg);
- // diff output is a bit big..
- if (args_in[0] != "diff") {
- GLib.debug( "GOT: %s" , sp.output);
- }
- // parse output for some commands ?
- return sp.output;
- }
+ GLib.debug("Spawn: %s", sp.output);
GitMonitor.gitmonitor.start();
-
-
- _this.el.hide();
+
+ GitRepo.updateAll("show_clones");
+
return false;
});
}