repo git: don't try to resolve conflicts when a rebase failed due to locked files

This commit is contained in:
Hylke Bons 2012-11-21 09:22:29 +00:00
parent a5218c8e1f
commit cd6f69ef43

View file

@ -472,22 +472,23 @@ namespace SparkleLib.Git {
git.StartAndWaitForExit (); git.StartAndWaitForExit ();
return false; return false;
}
SparkleLogger.LogInfo ("Git", Name + " | Conflict detected, trying to get out...");
string rebase_apply_path = new string [] { LocalPath, ".git", "rebase-apply" }.Combine ();
while (Directory.Exists (rebase_apply_path) && HasLocalChanges) { } else {
try { SparkleLogger.LogInfo ("Git", Name + " | Conflict detected, trying to get out...");
ResolveConflict (); string rebase_apply_path = new string [] { LocalPath, ".git", "rebase-apply" }.Combine ();
while (Directory.Exists (rebase_apply_path) && HasLocalChanges) {
try {
ResolveConflict ();
} catch (IOException e) { } catch (IOException e) {
SparkleLogger.LogInfo ("Git", Name + " | Failed to resolve conflict, trying again... (" + e.Message + ")"); SparkleLogger.LogInfo ("Git", Name + " | Failed to resolve conflict, trying again... (" + e.Message + ")");
}
} }
}
SparkleLogger.LogInfo ("Git", Name + " | Conflict resolved"); SparkleLogger.LogInfo ("Git", Name + " | Conflict resolved");
OnConflictResolved (); OnConflictResolved ();
}
} }
git = new SparkleGit (LocalPath, "config core.ignorecase false"); git = new SparkleGit (LocalPath, "config core.ignorecase false");