tree: repo: handle dirty state (#4554)

This commit is contained in:
Ruslan Kuprieiev
2020-09-11 17:25:33 +03:00
committed by GitHub
parent 2931d30ca5
commit cf7e534e2d
8 changed files with 262 additions and 56 deletions
+1
View File
@@ -191,6 +191,7 @@ def test_repotree_walk_fetch(tmp_dir, dvc, scm, local_remote):
out = tmp_dir.dvc_gen({"dir": {"foo": "foo"}}, commit="init")[0].outs[0]
dvc.push()
remove(dvc.cache.local.cache_dir)
remove(tmp_dir / "dir")
tree = RepoTree(dvc, fetch=True)
with dvc.state: