Submitter | phabricator |
---|---|
Date | April 12, 2022, 2:47 p.m. |
Message ID | <ac7ca9f97a1da9bbb3e73bda1fe23b2f@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/50842/ |
State | New |
Headers | show |
Comments
Patch
diff --git a/mercurial/mail.py b/mercurial/mail.py --- a/mercurial/mail.py +++ b/mercurial/mail.py @@ -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 )