GitMonitor.vala
authorAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 03:44:51 +0000 (11:44 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 03:44:51 +0000 (11:44 +0800)
GitMonitor.vala

index 108e591..e99fa08 100644 (file)
@@ -57,7 +57,7 @@ public class GitMonitor : Monitor
                        var first = this.queue.get(0);
                        var delay = true;
                        
                        var first = this.queue.get(0);
                        var delay = true;
                        
-                       // eg. on master....
+                       // eg. on master.... and is_auto branch
                        if (!first.repo.is_wip_branch() && first.repo.is_auto_branch()) {
                                delay = false;
                        }
                        if (!first.repo.is_wip_branch() && first.repo.is_auto_branch()) {
                                delay = false;
                        }
@@ -258,7 +258,7 @@ public class GitMonitor : Monitor
                }
                
                foreach(var q in this.queue) {
                }
                
                foreach(var q in this.queue) {
-                       if (!q.shouldIgnore() && !q.repo.is_wip_branch() && q.repo.is_auto_branch()) {
+                       if (!q.shouldIgnore() && q.repo.is_master_branch() && q.repo.is_auto_branch()) {
                                var oldq = this.queue;
                                this.queue =  new Gee.ArrayList<GitMonitorQueue>(); 
                                NewBranch.singleton().show(q.repo, oldq);
                                var oldq = this.queue;
                                this.queue =  new Gee.ArrayList<GitMonitorQueue>(); 
                                NewBranch.singleton().show(q.repo, oldq);