Merge pull request #1723 from avimar/git-order

Fix order for git checkout / git pull
This commit is contained in:
Thomas S Hatch 2012-07-29 08:58:04 -07:00
commit 0195b360a1

View File

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