mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-24 23:09:33 +01:00
repro: use state to obtain data item history
Fixes #258 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -78,7 +78,7 @@ class CmdRepro(CmdRun):
|
||||
|
||||
for data_item in data_item_list:
|
||||
try:
|
||||
target_commit = self.git.get_target_commit(data_item.data.relative)
|
||||
target_commit = self.git.get_target_commit(data_item.state.relative)
|
||||
if target_commit is None:
|
||||
msg = 'Data item "{}" cannot be reproduced: cannot obtain commit hashsum'
|
||||
Logger.warn(msg.format(data_item.data.relative))
|
||||
|
||||
Reference in New Issue
Block a user