Merge pull request #26921 from terminalmage/legacy_git_pillar_tests

Get rid of error in legacy git pillar when using branch mapping notation
This commit is contained in:
Justin Findlay 2015-09-10 14:06:29 -06:00
commit 757d3c4eab

View file

@ -316,6 +316,8 @@ class _LegacyGitPillar(object):
branch = opts.get('environment') or 'base'
if branch == 'base':
branch = opts.get('gitfs_base') or 'master'
elif ':' in branch:
branch = branch.split(':', 1)[0]
return branch
def update(self):