You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If only name is given, bumpversion uses a lightweight tag.
Otherwise, it uses an annotated tag.
Args:
name: The name of the tag
sign: True to sign the tag
message: An optional message to annotate the tag.
"""
command= ["git", "tag", name]
ifsign:
command+= ["--sign"]
ifmessage:
command+= ["--message", message]
run_command(command)
My python's default encoding is "cp950" for some reason that I haven't had the time to check. But bump-my-version shouldn't rely on the user's encoding being utf-8 to work. I did the following to fix it for me.
Also, looking at my error from the previous issue, I think bump-my-version is generally trying to catch subprocess.CalledProcessError and reformat the output? But it seem to forgot to catch the exception here.
The text was updated successfully, but these errors were encountered:
Glinte
changed the title
Tagging using git fails with UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 40
Tagging using git fails with UnicodeDecodeError if Python's default encoding is "cp950"
Jan 26, 2025
bump-my-version/bumpversion/scm.py
Lines 365 to 383 in 7e50ac7
My python's default encoding is "cp950" for some reason that I haven't had the time to check. But bump-my-version shouldn't rely on the user's encoding being utf-8 to work. I did the following to fix it for me.
Full traceback
Also, looking at my error from the previous issue, I think bump-my-version is generally trying to catch subprocess.CalledProcessError and reformat the output? But it seem to forgot to catch the exception here.
The text was updated successfully, but these errors were encountered: