fetch notes periodically

This commit is contained in:
Hylke 2011-08-25 16:02:34 +01:00
parent b31783c3eb
commit cd0b76bba8

View file

@ -68,6 +68,7 @@ namespace SparkleLib {
if (git.ExitCode == 0) { if (git.ExitCode == 0) {
string output = git.StandardOutput.ReadToEnd (); string output = git.StandardOutput.ReadToEnd ();
return output.TrimEnd (); return output.TrimEnd ();
} else { } else {
return null; return null;
} }
@ -91,8 +92,10 @@ namespace SparkleLib {
if (!remote_revision.StartsWith (CurrentRevision)) { if (!remote_revision.StartsWith (CurrentRevision)) {
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Remote changes found. (" + remote_revision + ")"); SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Remote changes found. (" + remote_revision + ")");
return true; return true;
} else { } else {
// FetchNotes ();TODO SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Fetching notes");
SyncDown ();
return false; return false;
} }
} }
@ -126,6 +129,7 @@ namespace SparkleLib {
if (git.ExitCode == 0) { if (git.ExitCode == 0) {
Rebase (); Rebase ();
return true; return true;
} else { } else {
return false; return false;
} }