mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #7927 from tones111/pillar
git_pillar: Don't merge updates
This commit is contained in:
commit
f260e80e0a
@ -100,11 +100,10 @@ def update(branch, repo_location):
|
||||
pid = os.getpid()
|
||||
repo = init(branch, repo_location)
|
||||
try:
|
||||
repo.git.checkout(branch)
|
||||
repo.git.checkout("origin/" + branch)
|
||||
except git.exc.GitCommandError as e:
|
||||
logging.error('Unable to checkout branch {0}: {1}'.format(branch, e))
|
||||
return False
|
||||
repo.git.pull()
|
||||
return True
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user