Commit 6ad476d0 authored by Matthias Putz's avatar Matthias Putz

Merge branch 'patch-1' of https://github.com/jbreazil/git-repo into jbreazil-patch-1

parents 6b991523 cf728350
...@@ -84,8 +84,9 @@ class Editor(object): ...@@ -84,8 +84,9 @@ class Editor(object):
fd = None fd = None
if re.compile("^.*[$ \t'].*$").match(editor): if re.compile("^.*[$ \t'].*$").match(editor):
args = [editor + ' "$@"', 'sh'] editor = re.sub('["\']', '', editor) ## Removes " or ' from windows path like "C:/Program Files (x86)/GitExtensions/GitExtensions.exe" so they don't go into the Popen list.
shell = True args = editor.rsplit() ## supports multiple spaces in windows path, and editor arguments like "C:/Program Files (x86)/GitExtensions/GitExtensions.exe fileeditor".
shell = False
else: else:
args = [editor] args = [editor]
shell = False shell = False
......
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