-
-
Notifications
You must be signed in to change notification settings - Fork 962
Closed
Milestone
Description
I have to work with a Git-Repository, that contains some files with non-ASCII-filenames. And this gives me problems with gitpython. I guess this behavior, that I'm gonna describe, is a bug.
Lets assume we have a Git-Repository. There is one file named Äbc.txt. The file is already staged and committed. And there is another file named test.txt which is not yet staged.
The command git status prints the following:
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
test.txt
When I add the file test.txt to the index with
from git import Repo
repo = Repo()
repo.index.add(['test.txt'])
and afterwards call git status, I receive the following message:
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: test.txt
renamed: "\303\204bc.txt" -> "\303\204bc.tx"
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: "\303\204bc.tx"
Untracked files:
(use "git add <file>..." to include in what will be committed)
"\303\204bc.txt"
What's happened here? This doesn't appear if I call git add test.txt. Why does a file, that I didn't added to the index gets renamed?
Metadata
Metadata
Assignees
Labels
No labels