Clone.bjs
[gitlive] / Clone.vala
index e463bc7..d7719d9 100644 (file)
@@ -246,38 +246,21 @@ public class Clone : Object
                 
                     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;
-                }
+