diff --git a/dvc/scm.py b/dvc/scm.py index ecced4059..be1f533ca 100644 --- a/dvc/scm.py +++ b/dvc/scm.py @@ -45,6 +45,10 @@ class Base(object): pass def brancher(self, branches=None, all_branches=False): + if not branches and not all_branches: + yield '' + return + saved = self.active_branch() if not branches: branches = self.list_branches() if all_branches else [saved]