mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-01-02 16:14:25 +00:00
Fix for handling values of EDITOR which contain a space.
The shell swallows the 0th arg, which was the filename. Simple fix is to pass in an extra arg for the shell to swallow. Change-Id: Iad6304ba9ccea6e7262ee06ef87d3dac57dbde81
This commit is contained in:
parent
60829ba72f
commit
b715b14807
@ -82,7 +82,7 @@ least one of these before using this command."""
|
|||||||
fd = None
|
fd = None
|
||||||
|
|
||||||
if re.compile("^.*[$ \t'].*$").match(editor):
|
if re.compile("^.*[$ \t'].*$").match(editor):
|
||||||
args = [editor + ' "$@"']
|
args = [editor + ' "$@"', 'sh']
|
||||||
shell = True
|
shell = True
|
||||||
else:
|
else:
|
||||||
args = [editor]
|
args = [editor]
|
||||||
|
Loading…
Reference in New Issue
Block a user