Carlos, thank you very much, core.precomposeunicode works just like you said.
And you're right, it seems the problem is in HFS+, 'git add .' worked as well,
so did even 'git add test_*'.
The problem seems solved.
05.10.2012, в 14:47, c...@elego.de (Carlos Martín Nieto) написал(а):
> Konstantin Khomoutov <flatw...@users.sourceforge.net> writes:
>> On Fri, 5 Oct 2012 14:13:49 +0400
>> Муковников Михаил <m.mukovni...@gmail.com> wrote:
>>> There's a problem using git with files having cyrillic 'й' in their
>>> name, git just can't track them.
>>> uname: Darwin 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25
>>> 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64 git
>>> version: 18.104.22.168 (from macports)
>>> Steps to reproduce:
>>> - git init
>>> - touch test_й
>>> - git status (should be "untracked files present")
>>> - git add test_й
>>> - git status
>>> # Untracked files:
>>> # (use "git add <file>..." to include in what will be committed)
>>> # "test_\320\270\314\206"
>>> nothing added to commit but untracked files present (use "git add" to
>>> Could this be helped somehow?--
>> What "this"? If you mean displaying escapes for UTF-8 bytes
>> representing that letter "й", then try setting core.quotepath to false
>> for this repository and see if that helps.
> Notice the 'git add test_й'. The problem is that git reports it as untracked.
> Михаил, is this the whole output or do you also see a
> differently-escaped version of the filename under tracked files? Does
> this problem not show up if you use 'git add -A' or 'git add .' instead
> of typing the name? If so, this happens because HFS+ stores and reports
> names differently than the way we told it to store it, so git sees a
> different set of bytes than what it's expecting and considers it a
> different file.
> With a recent version of git, you can set the core.precomposeunicode
> config setting to true, which deals with this situation. This tells git
> to transform the data it gets from the filesystem to the format that
> everyone else uses, which helps not only this, but also the 'git add .'
> case, so git stores the filename in the format the same way that other
> OSs expect to find.
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html