mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Resolve target branch when using __env__
This commit is contained in:
parent
d2fc910d59
commit
59894e2c83
1 changed files with 1 additions and 1 deletions
|
@ -2980,7 +2980,7 @@ class GitPillar(GitBase):
|
|||
if repo.env:
|
||||
env = repo.env
|
||||
else:
|
||||
env = 'base' if repo.branch == repo.base else repo.branch
|
||||
env = 'base' if repo.branch == repo.base else repo.get_checkout_target()
|
||||
if repo._mountpoint:
|
||||
if self.link_mountpoint(repo):
|
||||
self.pillar_dirs[repo.linkdir] = env
|
||||
|
|
Loading…
Add table
Reference in a new issue