repro: use state to obtain data item history

Fixes #258

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2017-10-21 00:04:39 +03:00
parent ef01dd9893
commit c6029d1421
+1 -1
View File
@@ -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))