diff --git a/e2e/tests/up/git_lfs_test.go b/e2e/tests/up/git_lfs_test.go index eabe42e18..c72dedb44 100644 --- a/e2e/tests/up/git_lfs_test.go +++ b/e2e/tests/up/git_lfs_test.go @@ -74,6 +74,7 @@ func simulateStaleGlobalLFSConfig(t *testing.T) { runGit(t, home, "config", "--global", "filter.lfs.process", "git-lfs filter-process") runGit(t, home, "config", "--global", "filter.lfs.smudge", "git-lfs smudge -- %f") runGit(t, home, "config", "--global", "filter.lfs.clean", "git-lfs clean -- %f") + runGit(t, home, "config", "--global", "filter.lfs.required", "true") } // newLFSFixtureRepo creates a repo declaring an LFS-tracked file, using local @@ -86,6 +87,7 @@ func newLFSFixtureRepo(t *testing.T) string { runGit(t, dir, "config", "filter.lfs.clean", "cat") runGit(t, dir, "config", "filter.lfs.smudge", "cat") runGit(t, dir, "config", "filter.lfs.process", "") + runGit(t, dir, "config", "filter.lfs.required", "false") writeFile( t, diff --git a/pkg/git/lfs.go b/pkg/git/lfs.go index 0904e7912..1a7034935 100644 --- a/pkg/git/lfs.go +++ b/pkg/git/lfs.go @@ -21,6 +21,7 @@ var lfsDisableFilterArgs = []string{ flagConfig, "filter.lfs.process=", flagConfig, "filter.lfs.smudge=cat", flagConfig, "filter.lfs.clean=cat", + flagConfig, "filter.lfs.required=false", } func cloneArgsForLFS() []string {