Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a4ba9b6

Browse files
authored
Merge pull request #324 from williamfzc/patch-1
fix: read commit_msg_file with utf-8
2 parents cfd4b1d + b435289 commit a4ba9b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎commitizen/commands/check.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __call__(self):
8080
def _get_commits(self):
8181
# Get commit message from file (--commit-msg-file)
8282
if self.commit_msg_file:
83-
with open(self.commit_msg_file, "r") as commit_file:
83+
with open(self.commit_msg_file, "r", encoding="utf-8") as commit_file:
8484
commit_title = commit_file.readline()
8585
commit_body = commit_file.read()
8686
return [git.GitCommit(rev="", title=commit_title, body=commit_body)]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /