From ee14ffe02e34f1cafdbea66f43cb2eb206d2041c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 1 Jun 2015 11:11:03 +0800 Subject: [PATCH] sync --- GitMonitor.vala | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/GitMonitor.vala b/GitMonitor.vala index d8ca8eb5..c32c91a5 100644 --- a/GitMonitor.vala +++ b/GitMonitor.vala @@ -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)); }; -- 2.39.2