Skip to content

Commit

Permalink
Merge pull request #1723 from avimar/git-order
Browse files Browse the repository at this point in the history
Fix order for git checkout / git pull
  • Loading branch information
thatch45 committed Jul 29, 2012
2 parents 63d6e96 + 08693a7 commit 0195b36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion salt/states/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0195b36

Please sign in to comment.