We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3d234e commit de303d4Copy full SHA for de303d4
tests/func/test_get.py
@@ -136,6 +136,14 @@ def test_absolute_file_outside_repo(tmp_dir, erepo_dir):
136
Repo.get(fspath(erepo_dir), "/root/")
137
138
139
+def test_absolute_file_outside_git_repo(tmp_dir, erepo_dir):
140
+ erepo_dir.scm.repo.index.remove([erepo_dir.dvc.dvc_dir], r=True)
141
+ erepo_dir.scm.commit("remove dvc")
142
+
143
+ with pytest.raises(PathMissingError):
144
+ Repo.get(fspath(erepo_dir), "/root/")
145
146
147
def test_unknown_path(tmp_dir, erepo_dir):
148
with pytest.raises(PathMissingError):
149
Repo.get(fspath(erepo_dir), "a_non_existing_file")
0 commit comments