repo git: hide .sparkleshare and .empty after a rebase. Fixes #814

This commit is contained in:
Hylke Bons 2012-06-28 14:21:06 +01:00
parent 1b04fda8f7
commit 4bef356142

View file

@ -485,7 +485,9 @@ namespace SparkleLib.Git {
SparkleHelpers.DebugInfo ("Git", Name + " | Conflict type: " + line);
// Ignore conflicts in the .sparkleshare file and use the local version
if (conflicting_path.EndsWith (".sparkleshare")) {
if (conflicting_path.EndsWith (".sparkleshare") ||
conflicting_path.EndsWith (".empty")) {
// Recover local version
SparkleGit git_theirs = new SparkleGit (LocalPath,
"checkout --theirs \"" + conflicting_path + "\"");
@ -493,6 +495,8 @@ namespace SparkleLib.Git {
git_theirs.Start ();
git_theirs.WaitForExit ();
File.SetAttributes (Path.Combine (LocalPath, conflicting_path), FileAttributes.Hidden);
SparkleGit git_rebase_continue = new SparkleGit (LocalPath, "rebase --continue");
git_rebase_continue.Start ();
git_rebase_continue.WaitForExit ();