[repo] pull before pushing in every situation
This commit is contained in:
parent
42f461b507
commit
d4bdea0be6
|
@ -334,10 +334,8 @@ namespace SparkleLib {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_HasUnsyncedChanges) {
|
if (_HasUnsyncedChanges)
|
||||||
CheckForRemoteChanges ();
|
FetchRebaseAndPush ();
|
||||||
Push ();
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -592,6 +590,13 @@ namespace SparkleLib {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void FetchRebaseAndPush ()
|
||||||
|
{
|
||||||
|
CheckForRemoteChanges ();
|
||||||
|
Push ();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public bool AnyDifferences {
|
public bool AnyDifferences {
|
||||||
|
|
||||||
get {
|
get {
|
||||||
|
@ -849,6 +854,8 @@ namespace SparkleLib {
|
||||||
if (PushingFailed != null)
|
if (PushingFailed != null)
|
||||||
PushingFailed (this, args);
|
PushingFailed (this, args);
|
||||||
|
|
||||||
|
FetchRebaseAndPush ();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Changes pushed.");
|
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Changes pushed.");
|
||||||
|
|
Loading…
Reference in a new issue