Change the default for recent commits to 0 days

Err on the side of fetching less a little, still fetch branches within 7
This commit is contained in:
Steve Streeting 2015-08-17 12:04:43 +01:00
parent 7422b4bec0
commit 3c795c05de
2 changed files with 3 additions and 3 deletions

@ -27,7 +27,7 @@ type FetchPruneConfig struct {
// Makes the FetchRecentRefsDays option apply to all remote refs as well (default false)
FetchRecentRefsIncludeRemotes bool
// number of days prior to latest commit on a ref that we'll fetch previous
// LFS changes too (default 3, 0 = only fetch at ref)
// LFS changes too (default 0 = only fetch at ref)
FetchRecentCommitsDays int
// Whether to always fetch recent even without --recent
FetchRecentAlways bool
@ -222,7 +222,7 @@ func (c *Configuration) FetchPruneConfig() *FetchPruneConfig {
c.fetchPruneConfig = &FetchPruneConfig{
FetchRecentRefsDays: 7,
FetchRecentRefsIncludeRemotes: false,
FetchRecentCommitsDays: 3,
FetchRecentCommitsDays: 0,
PruneOffsetDays: 3,
}
if v, ok := c.GitConfig("lfs.fetchrecentrefsdays"); ok {

@ -396,7 +396,7 @@ func TestFetchPruneConfigDefault(t *testing.T) {
fp := config.FetchPruneConfig()
assert.Equal(t, 7, fp.FetchRecentRefsDays)
assert.Equal(t, 3, fp.FetchRecentCommitsDays)
assert.Equal(t, 0, fp.FetchRecentCommitsDays)
assert.Equal(t, 3, fp.PruneOffsetDays)
assert.Equal(t, false, fp.FetchRecentRefsIncludeRemotes)