mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
optimize<Fetch>: do NOT raise error when fetch automatically in background
This commit is contained in:
@@ -60,6 +60,8 @@ namespace SourceGit.Commands {
|
||||
|
||||
public AutoFetch(string repo) {
|
||||
cmd = new Fetch(repo, "--all", true, null);
|
||||
cmd.DontRaiseError = true;
|
||||
|
||||
nextFetchPoint = DateTime.Now.AddMinutes(10).ToFileTime();
|
||||
timer = new Timer(OnTick, null, 60000, 10000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user