fetch notes periodically
This commit is contained in:
parent
19f428fd8f
commit
46140fb8d8
|
@ -66,8 +66,9 @@ namespace SparkleLib {
|
||||||
git.WaitForExit ();
|
git.WaitForExit ();
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue