Merge pull request #29545 from terminalmage/issue29009

git.latest: init submodules if not yet initialized
This commit is contained in:
Mike Place 2015-12-09 09:19:42 -07:00
commit ecbc60ba05

View file

@ -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)