Reset git install to the release version

This commit is contained in:
JonnyWong16 2020-03-06 15:25:52 -08:00
parent b2529db026
commit 42e33a0468

View file

@ -338,10 +338,7 @@ def reset():
output, err = runGit('checkout {}'.format(plexpy.CONFIG.GIT_BRANCH))
output, err = runGit('branch -u {}/{}'.format(plexpy.CONFIG.GIT_REMOTE,
plexpy.CONFIG.GIT_BRANCH))
output, err = runGit('reset --hard {}/{}'.format(plexpy.CONFIG.GIT_REMOTE,
plexpy.CONFIG.GIT_BRANCH))
output, err = runGit('pull {} {}'.format(plexpy.CONFIG.GIT_REMOTE,
plexpy.CONFIG.GIT_BRANCH))
output, err = runGit('reset --hard '.format(common.RELEASE))
if not output:
logger.error('Unable to reset Tautulli installation.')