fetcher git: explicitly set the push strategy. fixes #1035

This commit is contained in:
Hylke Bons 2012-10-26 13:43:54 +01:00
parent 3001e1c2c1
commit d79f093996
3 changed files with 4 additions and 3 deletions

View file

@ -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) {

View file

@ -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);

View file

@ -227,7 +227,7 @@ namespace SparkleLib {
}
lock (this.buffer_lock) {
if (IsBuffering || !HasLocalChanges)
if (IsBuffering || this.is_syncing || !HasLocalChanges)
return;
IsBuffering = true;