1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

pkg/gui: Fix crash if auto-fetch interval is non-positive

Check whether the auto-fetch interval configured is actually positive before
starting the background fetcher. If it is not, an error is logged. Also improve
the config option documentation a bit to make it easier to understand how to
disable auto-fetch.
This commit is contained in:
Moritz Haase
2022-03-26 18:24:36 +01:00
committed by Jesse Duffield
parent 240483953f
commit 4abd80e2c4
2 changed files with 11 additions and 3 deletions

View File

@ -86,7 +86,7 @@ os:
openCommand: ''
refresher:
refreshInterval: 10 # File/submodule refresh interval in seconds. Auto-refresh can be disabled via option 'git.autoRefresh'.
fetchInterval: 60 # re-fetch interval in seconds
fetchInterval: 60 # Re-fetch interval in seconds. Auto-fetch can be disabled via option 'git.autoFetch'.
update:
method: prompt # can be: prompt | background | never
days: 14 # how often an update is checked for