From 8993f5094487604efa119a74619162801910ed7c Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 31 May 2021 09:03:58 +0800 Subject: [PATCH] optimize: do NOT raise error when fetch automatically in background --- src/Commands/Fetch.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Commands/Fetch.cs b/src/Commands/Fetch.cs index 903c5372..56adc6a1 100644 --- a/src/Commands/Fetch.cs +++ b/src/Commands/Fetch.cs @@ -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); }