sync
authorAlan Knowles <alan@roojs.com>
Fri, 25 Aug 2017 05:29:15 +0000 (13:29 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 25 Aug 2017 05:29:15 +0000 (13:29 +0800)
GitMonitor.vala

index 4e05668..c1387b7 100644 (file)
@@ -517,11 +517,14 @@ public class GitMonitor : Monitor
                        print( "ADD : %s\n", GitMonitorQueue.queueArrayToString(add_files_f));
                        print( "REMOVE FILES: %s\n", GitMonitorQueue.queueArrayToString(remove_files_f));
                    
+                   if (add_files_f.length < 1 && remove_files_f.length < 1) {
+                               continue;
+                   }
+                   
                        // make sure monitoring is paused so it does not recursively pick up
                        // deletions
                        this.paused = true; 
-                        
-                        
+                         
                        try {
                                
                                repo.pull();