this.vdir = string.joinv("/", vpath);
this.vname = this.vdir + (this.vdir.length > 0 ? "/" : "") + this.name;
-
+/*
stdout.printf(
"NEW GitMonitorQueue\nname: %s\npath: %s\ndir: %s\n" +
"gitpath: %s\nvdir: %s\nvname: %s\n",
this.name, this.path, this.dir,
this.gitpath, this.vdir, this.vname
);
-
+*/
//f.repo = new imports.Scm.Git.Repo({ repopath: f.gitpath })
// make sure monitoring is paused so it does not recursively pick up
// deletions
+ try {
+ repo.pull();
+ } catch(Error e) {
+ failure += e.message;
+ }
- // -- DO STUFF.. try {
+
+ // -- DO STUFF..
+ try {
repo.add(add_files);
} catch(Error e) {
failure += e.message;