Fix base branch detection for git_pillar

Resolves #29015.
This commit is contained in:
Erik Johnson 2015-11-20 01:19:44 -06:00
parent 1cd9a4d1b4
commit 744487864d

View file

@ -2343,7 +2343,7 @@ class GitPillar(GitBase):
if repo.env:
env = repo.env
else:
base_branch = self.opts['{0}_branch'.format(self.role)]
base_branch = self.opts['{0}_base'.format(self.role)]
env = 'base' if repo.branch == base_branch else repo.branch
self.pillar_dirs[cachedir] = env