patchbomb: add tmpdir parameter to ui.edit call

This commit is contained in:
Sean Farley 2017-01-16 21:17:39 -08:00
parent df48d2115f
commit 934f476aec

View File

@ -271,7 +271,7 @@ def _getdescription(repo, defaultbody, sender, **opts):
else:
ui.write(_('\nWrite the introductory message for the '
'patch series.\n\n'))
body = ui.edit(defaultbody, sender)
body = ui.edit(defaultbody, sender, tmpdir=repo.path)
# Save series description in case sendmail fails
msgfile = repo.vfs('last-email.txt', 'wb')
msgfile.write(body)