From: Alan Knowles Date: Fri, 2 Nov 2018 04:20:12 +0000 (+0800) Subject: GitMonitor.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=08415bc285bb4d01c01b0965bdd3789a63e3dba7;hp=fc7eb32429da35c28c1f4b33de16925d1af5ef78 GitMonitor.vala --- diff --git a/GitMonitor.vala b/GitMonitor.vala index 78315cbe..4c7dfde9 100644 --- a/GitMonitor.vala +++ b/GitMonitor.vala @@ -251,14 +251,14 @@ public class GitMonitor : Monitor var gitpath = cmd.gitpath; var repo = GitRepo.get( gitpath ); - if ( !repo.isWipBranch()) { + if ( !repo.is_wip_branch()) { leave_queued.add(cmd); continue; } GLib.debug("GitMonitor.runQueue - finding %s", cmd.gitpath); - var ix = GitRepo.indexOf(repo_list, cmd.gitpath); + var ix = GitRepo.indexOf(repo_list, gitpath); if (ix < 0) { repo_list.append_val( GitRepo.get( gitpath )); ix = GitRepo.indexOf(repo_list, cmd.gitpath); @@ -331,6 +331,9 @@ public class GitMonitor : Monitor break; } } + + repo.cmds.clear(); + GLib.debug( "ADD : %s", GitMonitorQueue.queueArrayToString(add_files)); GLib.debug( "REMOVE FILES: %s", GitMonitorQueue.queueArrayToString(remove_files));