Movatterモバイル変換


[0]ホーム

URL:


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

Exception if GIT_COMMITTER_NAME contains UTF-8 encoded Umlaut #237

Closed
@guettli

Description

@guettli

If I run the python script using gitpython with this env var:

export GIT_COMMITTER_NAME="Thomas Müller"

I get this exception:

ErrorTraceback (most recent call last):  File "/home/foo_eins_d/src/scmtools/scm/tests/test_git.py", line 25, in test_git_status    repo.index.commit('initial commit')  File "/home/foo_eins_d/local/lib/python2.7/site-packages/git/index/base.py", line 900, in commit    head, author=author, committer=committer)  File "/home/foo_eins_d/local/lib/python2.7/site-packages/git/objects/commit.py", line 349, in create_from_tree    new_commit._serialize(stream)  File "/home/foo_eins_d/local/lib/python2.7/site-packages/git/objects/commit.py", line 392, in _serialize    altz_to_utctz_str(self.committer_tz_offset))).encode(self.encoding))UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 18: ordinal not in range(128)

Version: GitPython==0.3.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp