Merge pull request #704 from pre-commit/no_home

remove need for monkeypatching home
diff --git a/tests/check_added_large_files_test.py b/tests/check_added_large_files_test.py
index 5d2239b..c16bf5a 100644
--- a/tests/check_added_large_files_test.py
+++ b/tests/check_added_large_files_test.py
@@ -85,10 +85,9 @@
 
 
 @xfailif_no_gitlfs
-def test_allows_gitlfs(temp_git_dir, monkeypatch):  # pragma: no cover
+def test_allows_gitlfs(temp_git_dir):  # pragma: no cover
     with temp_git_dir.as_cwd():
-        monkeypatch.setenv('HOME', str(temp_git_dir))
-        cmd_output('git', 'lfs', 'install')
+        cmd_output('git', 'lfs', 'install', '--local')
         temp_git_dir.join('f.py').write('a' * 10000)
         cmd_output('git', 'lfs', 'track', 'f.py')
         cmd_output('git', 'add', '--', '.')
@@ -97,10 +96,9 @@
 
 
 @xfailif_no_gitlfs
-def test_moves_with_gitlfs(temp_git_dir, monkeypatch):  # pragma: no cover
+def test_moves_with_gitlfs(temp_git_dir):  # pragma: no cover
     with temp_git_dir.as_cwd():
-        monkeypatch.setenv('HOME', str(temp_git_dir))
-        cmd_output('git', 'lfs', 'install')
+        cmd_output('git', 'lfs', 'install', '--local')
         cmd_output('git', 'lfs', 'track', 'a.bin', 'b.bin')
         # First add the file we're going to move
         temp_git_dir.join('a.bin').write('a' * 10000)
@@ -112,10 +110,9 @@
 
 
 @xfailif_no_gitlfs
-def test_enforce_allows_gitlfs(temp_git_dir, monkeypatch):  # pragma: no cover
+def test_enforce_allows_gitlfs(temp_git_dir):  # pragma: no cover
     with temp_git_dir.as_cwd():
-        monkeypatch.setenv('HOME', str(temp_git_dir))
-        cmd_output('git', 'lfs', 'install')
+        cmd_output('git', 'lfs', 'install', '--local')
         temp_git_dir.join('f.py').write('a' * 10000)
         cmd_output('git', 'lfs', 'track', 'f.py')
         cmd_output('git', 'add', '--', '.')
@@ -123,11 +120,10 @@
         assert main(('--enforce-all', '--maxkb', '9', 'f.py')) == 0
 
 
-@xfailif_no_gitlfs  # pragma: no cover
-def test_enforce_allows_gitlfs_after_commit(temp_git_dir, monkeypatch):
+@xfailif_no_gitlfs
+def test_enforce_allows_gitlfs_after_commit(temp_git_dir):  # pragma: no cover
     with temp_git_dir.as_cwd():
-        monkeypatch.setenv('HOME', str(temp_git_dir))
-        cmd_output('git', 'lfs', 'install')
+        cmd_output('git', 'lfs', 'install', '--local')
         temp_git_dir.join('f.py').write('a' * 10000)
         cmd_output('git', 'lfs', 'track', 'f.py')
         cmd_output('git', 'add', '--', '.')