8000 feat(git): set LC_ALL to en_US.UTF-8 before running git tag to get th… · commitizen-tools/commitizen@ca85e15 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca85e15

Browse files
committed
feat(git): set LC_ALL to en_US.UTF-8 before running git tag to get the output for validating
without doing so, those who use a different language setting will fail the check #542
1 parent 362ec36 commit ca85e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commitizen/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def tag_exist(tag: str) -> bool:
143143

144144

145145
def is_signed_tag(tag: str) -> bool:
146-
c = cmd.run(f"git tag -v {tag}")
146+
c = cmd.run(f"LC_ALL=en_US.UTF-8 git tag -v {tag}")
147147
_ret = False
148148
if re.match("gpg: Signature made [0-9/:A-Za-z ]*", c.err):
149149
_ret = True

0 commit comments

Comments
 (0)
0