git.latest: init submodules if not yet initialized

Fixes #29009.
This commit is contained in:
Erik Johnson 2015-12-08 17:45:50 -06:00
parent 25d3a75d8c
commit 6619503aec

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)