mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
repo: use local root when determining state/index db dirname
This commit is contained in:
committed by
Peter Rowlands (변기호)
parent
50fd8ca15d
commit
96ac321dd5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user