sync
authorAlan Knowles <alan@roojs.com>
Mon, 1 Jun 2015 03:11:03 +0000 (11:11 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 1 Jun 2015 03:11:03 +0000 (11:11 +0800)
GitMonitor.vala

index d8ca8eb..c32c91a 100644 (file)
@@ -436,9 +436,15 @@ public class GitMonitor : Monitor
             };
             for(var ii = 0;ii < add_files.length;ii++) {
                 if (GitMonitorQueue.indexOfAdd(remove_files,  add_files.index(ii).vname) > -1 ) {
-                    // in add and remove - do not remvove
-                    continue;
+                    // the add file is in the remove list, and it does not exist - do not add it..
+                    if (!FileUtils.test(add_files.index(ii).vname, FileTest.EXISTS)) {
+                            continue;
+                                       }
+                     
                 }
+                
+                
+                
                 add_files_f.append_val(add_files.index(ii));
             };