From: Alan Knowles Date: Mon, 1 Jun 2015 03:11:03 +0000 (+0800) Subject: sync X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=ee14ffe02e34f1cafdbea66f43cb2eb206d2041c sync --- 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)); };