From 08415bc285bb4d01c01b0965bdd3789a63e3dba7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 2 Nov 2018 12:20:12 +0800 Subject: [PATCH] GitMonitor.vala --- GitMonitor.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)); -- 2.39.2