[repo] also push changes the user makes whilst we're syncing
This commit is contained in:
parent
274188e26d
commit
b22fabf5c6
|
@ -385,7 +385,9 @@ namespace SparkleLib {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Watcher.EnableRaisingEvents = false;
|
||||||
Rebase ();
|
Rebase ();
|
||||||
|
Watcher.EnableRaisingEvents = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -446,7 +448,10 @@ namespace SparkleLib {
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Remote changes found.");
|
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Remote changes found.");
|
||||||
Fetch ();
|
Fetch ();
|
||||||
|
|
||||||
|
Watcher.EnableRaisingEvents = false;
|
||||||
Rebase ();
|
Rebase ();
|
||||||
|
Watcher.EnableRaisingEvents = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -479,9 +484,15 @@ namespace SparkleLib {
|
||||||
SparkleHelpers.DebugInfo ("Local", "[" + Name + "] Changes have settled.");
|
SparkleHelpers.DebugInfo ("Local", "[" + Name + "] Changes have settled.");
|
||||||
|
|
||||||
_IsBuffering = false;
|
_IsBuffering = false;
|
||||||
|
|
||||||
HasChanged = false;
|
HasChanged = false;
|
||||||
|
|
||||||
|
while (Status.AnyDifferences) {
|
||||||
|
|
||||||
|
Watcher.EnableRaisingEvents = false;
|
||||||
AddCommitAndPush ();
|
AddCommitAndPush ();
|
||||||
|
Watcher.EnableRaisingEvents = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -699,8 +710,6 @@ namespace SparkleLib {
|
||||||
public void Rebase ()
|
public void Rebase ()
|
||||||
{
|
{
|
||||||
|
|
||||||
Watcher.EnableRaisingEvents = false;
|
|
||||||
|
|
||||||
if (Status.AnyDifferences) {
|
if (Status.AnyDifferences) {
|
||||||
|
|
||||||
Add ();
|
Add ();
|
||||||
|
@ -768,8 +777,6 @@ namespace SparkleLib {
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Changes rebased.");
|
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Changes rebased.");
|
||||||
|
|
||||||
Watcher.EnableRaisingEvents = true;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue