brancher refactor

This commit is contained in:
pawel
2019-06-18 15:28:51 +02:00
parent 38642eb127
commit 005a6016aa
2 changed files with 2 additions and 5 deletions
+2 -2
View File
@@ -36,9 +36,9 @@ def brancher( # noqa: E302
if all_tags:
tags = scm.list_tags()
if branches is None:
if branches is None and not (all_tags and not all_branches):
revs.extend([scm.active_branch()])
else:
elif branches is not None:
revs.extend(branches)
if tags is not None:
-3
View File
@@ -269,9 +269,6 @@ def show(
if metrics:
res[branch] = metrics
if all_tags and not all_branches:
res.pop(repo.scm.active_branch())
if not res:
if path:
raise BadMetricError(path)