Skip to content

Nonascii Files in the Repository #320

Description

@abbgrade

Hi,

i want to run GitPython unter Windows with nonascii filenames in the repository.

repo.index.add(repo.untracked_files)

does not work.

for untracked_file in repo.untracked_files:
bar = untracked_file.decode('utf-8')
foo = bar.encode('1252')
repo.git.add(foo)

works.

Is there a way to use unicode directly?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions