repo: use local root when determining state/index db dirname

This commit is contained in:
Peter Rowlands
2023-02-24 16:33:42 +09:00
committed by Peter Rowlands (변기호)
parent 50fd8ca15d
commit 96ac321dd5
2 changed files with 14 additions and 4 deletions
+2
View File
@@ -66,6 +66,8 @@ def test_remote_index_dir_config(make_tmp_dir, dvc):
conf["remote"]["s3"] = {"url": "s3://bucket/name"}
dvc.root_dir = "/usr/local/test_repo"
dvc.dvc_dir = "/usr/local/test_repo/.dvc"
dvc.__dict__.pop("local_dvc_dir")
assert os.path.dirname(
get_index(dvc.cloud.get_remote_odb(name="s3")).index_dir