*
*
*/
-var prototypeInit = false;
+//var prototypeInit = false;
function Git( repo) {
+
+ if (!GLib.file_test(repo, GLib.FileTest.IS_DIR)) {
+ throw "Repo does not exist";
+ }
+ this.repo = repo;
/*
if (!prototypeInit) {
// proto type on set up yet..
}
Git.prototype = {
+ repo : ''
run : function() {
var args = [];
}
}
-
+ var out = Spawn.run({
+ env : [ "GITPATH=" + this.repo ],
+ cwd : this.repo
+ args: args
+ });
}
}