From d9fcadd41794e3680d9445f5d9bdf7746739f6de Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 19 Jun 2018 20:12:31 +0300 Subject: [PATCH] metrics: don't overwrite value for the branch Signed-off-by: Ruslan Kuprieiev --- dvc/project.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dvc/project.py b/dvc/project.py index 98c17d286..f4944309d 100644 --- a/dvc/project.py +++ b/dvc/project.py @@ -358,7 +358,10 @@ class Project(object): htsv_path=htsv_path) if not metric: continue - res[branch] = {} + + if branch not in res: + res[branch] = {} + res[branch][rel] = metric self.scm.checkout(saved)