##// END OF EJS Templates
debuginstall: strip double quotes from editorbin on Windows...
Matt Harbison -
r36353:d639f60c default
parent child Browse files
Show More
@@ -1241,6 +1241,8 b' def debuginstall(ui, **opts):'
1241 editor = ui.geteditor()
1241 editor = ui.geteditor()
1242 editor = util.expandpath(editor)
1242 editor = util.expandpath(editor)
1243 editorbin = pycompat.shlexsplit(editor, posix=not pycompat.iswindows)[0]
1243 editorbin = pycompat.shlexsplit(editor, posix=not pycompat.iswindows)[0]
1244 if pycompat.iswindows and editorbin[0] == '"' and editorbin[-1] == '"':
1245 editorbin = editorbin[1:-1]
1244 fm.write('editor', _("checking commit editor... (%s)\n"), editorbin)
1246 fm.write('editor', _("checking commit editor... (%s)\n"), editorbin)
1245 cmdpath = util.findexe(editorbin)
1247 cmdpath = util.findexe(editorbin)
1246 fm.condwrite(not cmdpath and editor == 'vi', 'vinotfound',
1248 fm.condwrite(not cmdpath and editor == 'vi', 'vinotfound',
General Comments 0
You need to be logged in to leave comments. Login now