Scm/Git/Repo.js
authorAlan Knowles <alan@akbkhome.com>
Sat, 17 Sep 2011 04:19:44 +0000 (12:19 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 17 Sep 2011 04:19:44 +0000 (12:19 +0800)
Scm/Git/Repo.js

index 570832b..4ceba2f 100644 (file)
@@ -661,7 +661,7 @@ Repo = XObject.define(
         
          
         
-        git: function(args_in)
+        git: function(args_in,env)
         {
             // convert arguments.
             
@@ -699,8 +699,8 @@ Repo = XObject.define(
                
                 print( args.join(" ")); 
             }
-            
-            var env =  [  "HOME=" + GLib.get_home_dir() ];
+            env = env || [];
+            var env.push(  "HOME=" + GLib.get_home_dir() );
             // do not need to set gitpath..
             //if (File.exists(this.repo + '/.git/config')) {
                 //env.push("GITPATH=" + this.repo );