optimize<Fetch>: do NOT raise error when fetch automatically in background

This commit is contained in:
leo 2021-05-31 09:03:58 +08:00
parent 11420ee5b4
commit 8993f50944

View file

@ -60,6 +60,8 @@ namespace SourceGit.Commands {
public AutoFetch(string repo) { public AutoFetch(string repo) {
cmd = new Fetch(repo, "--all", true, null); cmd = new Fetch(repo, "--all", true, null);
cmd.DontRaiseError = true;
nextFetchPoint = DateTime.Now.AddMinutes(10).ToFileTime(); nextFetchPoint = DateTime.Now.AddMinutes(10).ToFileTime();
timer = new Timer(OnTick, null, 60000, 10000); timer = new Timer(OnTick, null, 60000, 10000);
} }