@@ -85,10 +85,9 @@ def has_gitlfs():
8585
8686
8787@xfailif_no_gitlfs
88- def test_allows_gitlfs (temp_git_dir , monkeypatch ): # pragma: no cover
88+ def test_allows_gitlfs (temp_git_dir ): # pragma: no cover
8989 with temp_git_dir .as_cwd ():
90- monkeypatch .setenv ('HOME' , str (temp_git_dir ))
91- cmd_output ('git' , 'lfs' , 'install' )
90+ cmd_output ('git' , 'lfs' , 'install' , '--local' )
9291 temp_git_dir .join ('f.py' ).write ('a' * 10000 )
9392 cmd_output ('git' , 'lfs' , 'track' , 'f.py' )
9493 cmd_output ('git' , 'add' , '--' , '.' )
@@ -97,10 +96,9 @@ def test_allows_gitlfs(temp_git_dir, monkeypatch): # pragma: no cover
9796
9897
9998@xfailif_no_gitlfs
100- def test_moves_with_gitlfs (temp_git_dir , monkeypatch ): # pragma: no cover
99+ def test_moves_with_gitlfs (temp_git_dir ): # pragma: no cover
101100 with temp_git_dir .as_cwd ():
102- monkeypatch .setenv ('HOME' , str (temp_git_dir ))
103- cmd_output ('git' , 'lfs' , 'install' )
101+ cmd_output ('git' , 'lfs' , 'install' , '--local' )
104102 cmd_output ('git' , 'lfs' , 'track' , 'a.bin' , 'b.bin' )
105103 # First add the file we're going to move
106104 temp_git_dir .join ('a.bin' ).write ('a' * 10000 )
@@ -112,22 +110,20 @@ def test_moves_with_gitlfs(temp_git_dir, monkeypatch): # pragma: no cover
112110
113111
114112@xfailif_no_gitlfs
115- def test_enforce_allows_gitlfs (temp_git_dir , monkeypatch ): # pragma: no cover
113+ def test_enforce_allows_gitlfs (temp_git_dir ): # pragma: no cover
116114 with temp_git_dir .as_cwd ():
117- monkeypatch .setenv ('HOME' , str (temp_git_dir ))
118- cmd_output ('git' , 'lfs' , 'install' )
115+ cmd_output ('git' , 'lfs' , 'install' , '--local' )
119116 temp_git_dir .join ('f.py' ).write ('a' * 10000 )
120117 cmd_output ('git' , 'lfs' , 'track' , 'f.py' )
121118 cmd_output ('git' , 'add' , '--' , '.' )
122119 # With --enforce-all large files on git lfs should succeed
123120 assert main (('--enforce-all' , '--maxkb' , '9' , 'f.py' )) == 0
124121
125122
126- @xfailif_no_gitlfs # pragma: no cover
127- def test_enforce_allows_gitlfs_after_commit (temp_git_dir , monkeypatch ):
123+ @xfailif_no_gitlfs
124+ def test_enforce_allows_gitlfs_after_commit (temp_git_dir ): # pragma: no cover
128125 with temp_git_dir .as_cwd ():
129- monkeypatch .setenv ('HOME' , str (temp_git_dir ))
130- cmd_output ('git' , 'lfs' , 'install' )
126+ cmd_output ('git' , 'lfs' , 'install' , '--local' )
131127 temp_git_dir .join ('f.py' ).write ('a' * 10000 )
132128 cmd_output ('git' , 'lfs' , 'track' , 'f.py' )
133129 cmd_output ('git' , 'add' , '--' , '.' )
0 commit comments