Commit cd65abb5 authored by Jérome Perrin's avatar Jérome Perrin

gitclone: fix option name for git-executable

The uninstall part was not working in webrunner environment where there
is not $PATH
parent 27c53cbe
......@@ -259,7 +259,7 @@ def uninstall(name, options):
"""
force_keep = False
if options.get('develop', 'no').lower() in ('1', 'yes', 'true'):
p = subprocess.Popen([options.get('git_command', 'git'), 'status', '--short'],
p = subprocess.Popen([options.get('git-executable', 'git'), 'status', '--short'],
cwd=options['location'],
stdout=subprocess.PIPE)
if p.communicate()[0].strip():
......@@ -267,7 +267,7 @@ def uninstall(name, options):
"This folder will be left as is." % options['location']
force_keep = True
p = subprocess.Popen([options.get('git_command', 'git'),
p = subprocess.Popen([options.get('git-executable', 'git'),
'log', '--branches', '--not', '--remotes'],
cwd=options['location'],
stdout=subprocess.PIPE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment