mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #1723 from avimar/git-order
Fix order for git checkout / git pull
This commit is contained in:
commit
0195b360a1
@ -70,9 +70,11 @@ def latest(name,
|
||||
ret,
|
||||
('Repository {0} update is probably required (current '
|
||||
'revision is {1})').format(target, current_rev))
|
||||
|
||||
__salt__['git.pull'](target, user=runas)
|
||||
|
||||
if rev:
|
||||
__salt__['git.checkout'](target, rev, user=runas)
|
||||
__salt__['git.pull'](target, user=runas)
|
||||
|
||||
if submodules:
|
||||
__salt__['git.submodule'](target, user=runas)
|
||||
|
Loading…
Reference in New Issue
Block a user