mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 23:09:32 +01:00
use explicit code to fix copy bug
This commit is contained in:
committed by
Dave Berenbaum
parent
fd71434df5
commit
13325ea89b
@@ -538,7 +538,7 @@ def unpack_if_dir(fs, path, props: dict[str, str], onerror: Optional[Callable] =
|
||||
|
||||
if "data" in unpacked:
|
||||
for subpath in unpacked["data"]:
|
||||
result["data"].update({subpath: {} | props}) # avoid shared reference
|
||||
result["data"].update({subpath: props.copy()})
|
||||
else:
|
||||
result.update(unpacked)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user