From c6029d142190cbe33d31aa0f8999d406154c7b67 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 19 Oct 2017 23:27:06 +0300 Subject: [PATCH] repro: use state to obtain data item history Fixes #258 Signed-off-by: Ruslan Kuprieiev --- dvc/command/repro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/command/repro.py b/dvc/command/repro.py index e96f79dfb..f618cd341 100644 --- a/dvc/command/repro.py +++ b/dvc/command/repro.py @@ -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))