mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
index: set source fs/path for import data index entries
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
bbaf57c5b2
commit
36f6f29ac8
+6
-1
@@ -252,7 +252,7 @@ class Index:
|
||||
if out.files:
|
||||
out.obj = out.get_obj()
|
||||
|
||||
data_index[key] = DataIndexEntry(
|
||||
entry = DataIndexEntry(
|
||||
meta=out.meta,
|
||||
obj=out.obj,
|
||||
hash_info=out.hash_info,
|
||||
@@ -260,6 +260,11 @@ class Index:
|
||||
cache=out.odb,
|
||||
remote=remote,
|
||||
)
|
||||
if out.stage.is_import and not out.stage.is_repo_import:
|
||||
entry.fs = out.stage.deps[0].fs
|
||||
entry.path = out.stage.deps[0].fs_path
|
||||
entry.cache = out.odb
|
||||
data_index[key] = entry
|
||||
|
||||
return dict(by_workspace)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user