git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git filter-branch can "forget" directories on case insensitive filesystems

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Jan 25, 2011, 23:31 UTC
Message-ID
<AANLkTimvwNs9EkV1GweT7VCdzvcz5J5_0pCUA44urQYH@mail.gmail.com>
In-Reply-To
<4D3F5C42.4040300@googlemail.com>
On Wed, Jan 26, 2011 at 12:26 AM, Simeon Maxein <smaxein@googlemail.com> wrote:
Show 26 quoted lines
> Am 25.01.2011 22:56, schrieb Johannes Sixt:
>> On Dienstag, 25. Januar 2011, Simeon Maxein wrote:
>>> In my opinion this is a quite serious issue, because files are lost
>>> without any indication to the user. As of git 1.7.3.1 (tested on
>>> Windows/NTFS with msysGit this time), the problem still exists. Please
>>> give it a look. Fullquote of the problem description / steps to
>>> reproduce follows.
>>>> mkdir testdir
>>>> echo 'abc' >testdir/testfile
>>>> git add testdir
>>>> git commit -m foo
>>>> git rm -r testdir
>>>> mkdir testDir
>>>> echo 'abc' >testDir/testfile
>>>> git add testDir
>>>> git commit -m bar
>> Please retry with current release condidate of 1.7.4; it has some
>> core.ignorecase improvements w.r.t. directories. It could well be that your
>> problem is fixed.
>>
>> -- Hannes
> Thanks for the suggestion. The directory doesn't vanish anymore with
> 1.7.4, so a big Thank You to the developers for improving this. When
> rewriting the second commit ls still prints testdir as lowercase though.
> More of a nitpick, but it would still be neat to have it right.
>

This part is correct behavior - git's internal representation is case sensitive. So git's record of the file is still 'testdir', even i you've deleted it and created a new called 'testDir'.

Previous: Simeon MaxeinNext: Simeon Maxein
Message 5 of 7 in “git filter-branch can "forget" directories on case insensitive filesystems”
  1. Simeon MaxeinSep 3, 2010
  2. Simeon MaxeinJan 25, 2011
  3. Johannes SixtJan 25, 2011
  4. Simeon MaxeinJan 25, 2011
  5. Erik Faye-LundJan 25, 2011
  6. Simeon MaxeinJan 26, 2011
  7. Erik Faye-LundJan 26, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.