mercurial/commands.py
branchstable
changeset 24891 be4915009b09
parent 24873 12908cdbab73
child 24906 a4ee6f774f14
--- a/mercurial/commands.py	Fri May 01 22:19:20 2015 +0900
+++ b/mercurial/commands.py	Thu Apr 30 23:02:52 2015 -0400
@@ -2370,6 +2370,7 @@
     # editor
     ui.status(_("checking commit editor...\n"))
     editor = ui.geteditor()
+    editor = util.expandpath(editor)
     cmdpath = util.findexe(shlex.split(editor)[0])
     if not cmdpath:
         if editor == 'vi':