Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update commit.py #398

Open
wants to merge 1 commit into
base: python3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import sublime_plugin
from .git import GitTextCommand, GitWindowCommand, plugin_file, view_contents, _make_text_safeish
from .add import GitAddSelectedHunkCommand
import codecs

history = []

Expand Down Expand Up @@ -121,7 +122,7 @@ def message_done(self, message):
message_file.close()
self.message_file = message_file
# and actually commit
with open(message_file.name, 'r') as fp:
with codecs.open(message_file.name, mode = 'r', encoding = 'utf-8') as fp:
self.run_command(['git', 'commit', '-F', '-', self.extra_options],
self.commit_done, working_dir=self.working_dir, stdin=fp.read())

Expand Down