Merge pull request #863 from efiop/master

brancher: don't checkout if no branches is specified
This commit is contained in:
Ruslan Kuprieiev
2018-07-06 04:12:05 +03:00
committed by GitHub
+4
View File
@@ -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]