fix: bug in commit subcommand

This commit is contained in:
Manuel Barkhau 2018-11-11 15:44:43 +01:00
parent e6e3b963dd
commit 14efa15c97

View file

@ -96,7 +96,7 @@ class VCS:
message_data = message.encode("utf-8")
tmp_file = tempfile.NamedTemporaryFile("wb", delete=False)
assert " " not in tmp_file
assert " " not in tmp_file.name
with tmp_file as fh:
fh.write(message_data)