mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-11 23:57:21 -08:00
fix: auto fetch does not work if use ssh (#882)
This commit is contained in:
parent
8018abe0a2
commit
94c532889b
1 changed files with 6 additions and 1 deletions
|
@ -2298,8 +2298,13 @@ namespace SourceGit.ViewModels
|
|||
if (desire > now)
|
||||
return;
|
||||
|
||||
var remotes = new List<string>();
|
||||
foreach (var remote in _remotes)
|
||||
remotes.Add(remote.Name);
|
||||
|
||||
Dispatcher.UIThread.Invoke(() => IsAutoFetching = true);
|
||||
new Commands.Fetch(_fullpath, "--all", false, _settings.EnablePruneOnFetch, false, null) { RaiseError = false }.Exec();
|
||||
foreach (var remote in remotes)
|
||||
new Commands.Fetch(_fullpath, remote, false, _settings.EnablePruneOnFetch, false, null) { RaiseError = false }.Exec();
|
||||
_lastFetchTime = DateTime.Now;
|
||||
Dispatcher.UIThread.Invoke(() => IsAutoFetching = false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue