[repo] Always commit before rebasing fetched changes in case something changed

This commit is contained in:
Hylke Bons 2011-02-23 00:09:44 +00:00
parent 43290d387e
commit 60b77c5fa1

View file

@ -565,13 +565,13 @@ namespace SparkleLib {
LocalTimer.Stop ();
RemoteTimer.Stop ();
Add ();
string message = FormatCommitMessage ();
if (message != null) {
if (RepositoryStatus.AnyDifferences) {
Add ();
string message = FormatCommitMessage ();
Commit (message);
CheckForRemoteChanges ();
Push ();
@ -745,9 +745,14 @@ namespace SparkleLib {
// Merges the fetched changes
public void Rebase ()
{
if (RepositoryStatus.AnyDifferences) {
Add ();
Commit ();
Add ();
}
Watcher.EnableRaisingEvents = false;
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Rebasing changes...");