Submitter | phabricator |
---|---|
Date | April 11, 2022, 12:56 p.m. |
Message ID | <f7db4bae917a012115f9a66a14d82d9e@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/50840/ |
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 )