From 4213fb6fcb66d676eb25586f13d4d2848bf89892 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 25 Aug 2017 13:29:15 +0800 Subject: [PATCH] sync --- GitMonitor.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/GitMonitor.vala b/GitMonitor.vala index 4e05668e..c1387b7b 100644 --- a/GitMonitor.vala +++ b/GitMonitor.vala @@ -517,11 +517,14 @@ public class GitMonitor : Monitor print( "ADD : %s\n", GitMonitorQueue.queueArrayToString(add_files_f)); print( "REMOVE FILES: %s\n", GitMonitorQueue.queueArrayToString(remove_files_f)); + if (add_files_f.length < 1 && remove_files_f.length < 1) { + continue; + } + // make sure monitoring is paused so it does not recursively pick up // deletions this.paused = true; - - + try { repo.pull(); -- 2.39.2