mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-26 21:04:59 +00:00
fix: Auto fetch repo immediately when it's opened
This commit is contained in:
parent
d3d6889e25
commit
98df13211a
1 changed files with 2 additions and 9 deletions
|
@ -133,19 +133,12 @@ namespace SourceGit.Commands
|
|||
var job = new Job
|
||||
{
|
||||
Cmd = new Fetch(repo, "--all", true, null) { RaiseError = false },
|
||||
NextRunTimepoint = DateTime.Now.AddMinutes(Convert.ToDouble(Interval)),
|
||||
NextRunTimepoint = DateTime.Now,
|
||||
};
|
||||
|
||||
lock (_lock)
|
||||
{
|
||||
if (_jobs.ContainsKey(repo))
|
||||
{
|
||||
_jobs[repo] = job;
|
||||
}
|
||||
else
|
||||
{
|
||||
_jobs.Add(repo, job);
|
||||
}
|
||||
_jobs[repo] = job;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue