mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #29545 from terminalmage/issue29009
git.latest: init submodules if not yet initialized
This commit is contained in:
commit
ecbc60ba05
1 changed files with 2 additions and 2 deletions
|
@ -1117,7 +1117,7 @@ def latest(name,
|
|||
if submodules:
|
||||
__salt__['git.submodule'](target,
|
||||
'update',
|
||||
opts=['--recursive'],
|
||||
opts=['--init', '--recursive'],
|
||||
user=user,
|
||||
identity=identity)
|
||||
elif bare:
|
||||
|
@ -1376,7 +1376,7 @@ def latest(name,
|
|||
if submodules and remote_rev:
|
||||
__salt__['git.submodule'](target,
|
||||
'update',
|
||||
opts=['--recursive'],
|
||||
opts=['--init', '--recursive'],
|
||||
user=user,
|
||||
identity=identity)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue