mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
dvc: upgrade to dvc-objects 0.0.4
This commit is contained in:
committed by
skshetry
parent
7b16a377e5
commit
ef689c5593
@@ -107,7 +107,7 @@ class TestCheckoutCorruptedCacheDir(TestDvc):
|
||||
# to check if dvc will detect that the cache is corrupted.
|
||||
obj = load(self.dvc.odb.local, out.hash_info)
|
||||
_, _, entry_oid = list(obj)[0]
|
||||
cache = self.dvc.odb.local.hash_to_path(entry_oid.value)
|
||||
cache = self.dvc.odb.local.oid_to_path(entry_oid.value)
|
||||
|
||||
os.chmod(cache, 0o644)
|
||||
with open(cache, "w+", encoding="utf-8") as fobj:
|
||||
|
||||
Reference in New Issue
Block a user