mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
objects: extract size/nfiles to Meta (#6784)
* stage: capture metadata * tree: capture metadata * objects: extract size/nfiles from HashInfo/HashFile/Tree to Meta
This commit is contained in:
@@ -101,7 +101,7 @@ class TestCheckoutCorruptedCacheDir(TestDvc):
|
||||
# NOTE: modifying cache file for one of the files inside the directory
|
||||
# to check if dvc will detect that the cache is corrupted.
|
||||
obj = load(self.dvc.odb.local, out.hash_info)
|
||||
_, entry_obj = list(obj)[0]
|
||||
_, _, entry_obj = list(obj)[0]
|
||||
cache = os.fspath(
|
||||
self.dvc.odb.local.hash_to_path_info(entry_obj.hash_info.value)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user