mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-27 07:18:28 +01:00
brancher: don't checkout if no branches is specified
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user