metrics: don't overwrite value for the branch

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-06-19 20:12:31 +03:00
parent d4982b360e
commit d9fcadd417
+4 -1
View File
@@ -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)