diff options
Diffstat (limited to 'cmd/generate')
-rw-r--r-- | cmd/generate/gitcache.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/generate/gitcache.go b/cmd/generate/gitcache.go index 7caf024..844408d 100644 --- a/cmd/generate/gitcache.go +++ b/cmd/generate/gitcache.go @@ -5,6 +5,7 @@ import ( "os" "os/exec" "strings" + "time" "git.mothstuff.lol/lukeshu/eclipse/lib/gitcache" ) @@ -12,7 +13,8 @@ import ( var gitFetched = map[string]struct{}{} var gitCache = &gitcache.Cache{ - Dir: ".git-cache", + Dir: ".git-cache", + MinPeriod: 1 * time.Hour, } func withGit(u string, fn func(dir string) error) error { |