Private GIT

Skip to content
Snippets Groups Projects
Commit 30c9c847 authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Hopefully fix auto-update for git users with broken paths

parent 9e53fc05
Branches
Tags
No related merge requests found
......@@ -182,8 +182,8 @@ class GitUpdateManager(UpdateManager):
git = 'git'
try:
logger.log("Executing "+git+" show with your shell in "+os.getcwd(), logger.DEBUG)
p = subprocess.Popen(git+' show', stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, cwd=os.getcwd())
logger.log("Executing "+git+" show with your shell in "+sickbeard.PROG_DIR, logger.DEBUG)
p = subprocess.Popen(git+' show', stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, cwd=sickbeard.PROG_DIR)
output, err = p.communicate()
except OSError, e:
logger.log("Unable to find git, can't tell what version you're running")
......@@ -284,8 +284,8 @@ class GitUpdateManager(UpdateManager):
try:
popen_str = git+' pull origin '+sickbeard.version.SICKBEARD_VERSION
logger.log("Executing command: "+popen_str+" with your shell in "+os.getcwd(), logger.DEBUG)
p = subprocess.Popen(popen_str, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, cwd=os.getcwd())
logger.log("Executing command: "+popen_str+" with your shell in "+sickbeard.PROG_DIR, logger.DEBUG)
p = subprocess.Popen(popen_str, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, cwd=sickbeard.PROG_DIR)
output, err = p.communicate()
except OSError, e:
#logger.log("Unable to find git, can't tell what version you're running")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment