From 68ada3a2063af003edf264e37e321b4ac72728f7 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 23 May 2010 18:57:18 +0100 Subject: [PATCH] disable file monitoring while resolving conflicts --- SparkleShare/SparkleRepo.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SparkleShare/SparkleRepo.cs b/SparkleShare/SparkleRepo.cs index a54d53f0..b82be193 100644 --- a/SparkleShare/SparkleRepo.cs +++ b/SparkleShare/SparkleRepo.cs @@ -243,6 +243,8 @@ namespace SparkleShare { Process.WaitForExit (); Process.Start(); + Watcher.EnableRaisingEvents = false; + foreach (string Line in Regex.Split (Output, "\n")) { if (Line.Contains ("needs merge")) { @@ -261,7 +263,7 @@ namespace SparkleShare { File.Move (ProblemFileName, ProblemFileName + " (" + UserName + " - " + - TimeStamp); + TimeStamp + ")"); Process.StartInfo.Arguments = "checkout --theirs " + ProblemFileName; @@ -286,6 +288,8 @@ namespace SparkleShare { Process.Start(); Console.WriteLine ("[Git][" + Name + "] Conflict resolved."); + Watcher.EnableRaisingEvents = true; + Push (); Fetch ();