disable file monitoring while resolving conflicts

This commit is contained in:
Hylke Bons 2010-05-23 18:57:18 +01:00
parent c90251764d
commit 68ada3a206

View file

@ -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 ();