Merge pull request #7927 from tones111/pillar

git_pillar: Don't merge updates
This commit is contained in:
Thomas S Hatch 2013-10-18 09:26:31 -07:00
commit f260e80e0a

View File

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