GitMonitor.vala
[gitlive] / GitMonitor.vala
index 8314678..be5fb29 100644 (file)
@@ -39,14 +39,14 @@ public class GitMonitorQueue : MonitorNamePathDir {
             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 })
         
@@ -398,8 +398,15 @@ public class GitMonitor : Monitor
              
             // 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;