fetcher git: explicitly set the push strategy. fixes #1035
This commit is contained in:
parent
3001e1c2c1
commit
d79f093996
|
@ -338,7 +338,8 @@ namespace SparkleLib.Git {
|
|||
"core.packedGitWindowSize 128m",
|
||||
"pack.deltaCacheSize 128m",
|
||||
"pack.packSizeLimit 128m",
|
||||
"pack.windowMemory 128m"
|
||||
"pack.windowMemory 128m",
|
||||
"push.default matching"
|
||||
};
|
||||
|
||||
foreach (string setting in settings) {
|
||||
|
|
|
@ -163,7 +163,7 @@ namespace SparkleLib.Git {
|
|||
|
||||
string remote_revision = output.Substring (0, 40);
|
||||
|
||||
if (!remote_revision.StartsWith (current_revision)) {
|
||||
if (!string.IsNullOrEmpty (remote_revision) && !remote_revision.StartsWith (current_revision)) {
|
||||
SparkleLogger.LogInfo ("Git", Name + " | Remote changes found, local: " +
|
||||
current_revision + ", remote: " + remote_revision);
|
||||
|
||||
|
|
|
@ -227,7 +227,7 @@ namespace SparkleLib {
|
|||
}
|
||||
|
||||
lock (this.buffer_lock) {
|
||||
if (IsBuffering || !HasLocalChanges)
|
||||
if (IsBuffering || this.is_syncing || !HasLocalChanges)
|
||||
return;
|
||||
|
||||
IsBuffering = true;
|
||||
|
|
Loading…
Reference in a new issue