changeset 49051 | 1d6c6ad645e1 |
parent 48883 | f0c445a8e324 |
child 50373 | 1c7453f2bb57 |
--- a/mercurial/mail.py Mon Mar 28 18:53:55 2022 +0200 +++ b/mercurial/mail.py Mon Dec 02 14:45:00 2019 +0100 @@ -260,9 +260,11 @@ ) ) else: - if not procutil.findexe(method): + command = procutil.shellsplit(method) + command = command[0] if command else b'' + if not (command and procutil.findexe(command)): raise error.Abort( - _(b'%r specified as email transport, but not in PATH') % method + _(b'%r specified as email transport, but not in PATH') % command )