mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
push: handle missing/failed version_aware file
Previously we used recorded index which had stub entries for missing/failed outputs, but now we actually collect everything ourselves and those are missing.
This commit is contained in:
@@ -101,7 +101,7 @@ def _get_remote(
|
||||
return repo.cloud.get_remote(name, command)
|
||||
|
||||
|
||||
def _merge_push_meta(
|
||||
def _merge_push_meta( # noqa: C901
|
||||
out: "Output",
|
||||
index: Union["DataIndex", "DataIndexView"],
|
||||
remote: Optional[str] = None,
|
||||
@@ -116,7 +116,11 @@ def _merge_push_meta(
|
||||
from dvc_data.index.save import build_tree
|
||||
|
||||
_, key = out.index_key
|
||||
entry = index[key]
|
||||
|
||||
entry = index.get(key)
|
||||
if entry is None:
|
||||
return
|
||||
|
||||
repo = out.stage.repo
|
||||
if out.isdir():
|
||||
old_tree = out.get_obj()
|
||||
|
||||
Reference in New Issue
Block a user