# [BUG] git-filter-branch and filename case changes on insensitive file systems

3 messages from 2007-10-10 to 2007-10-10. Participants: Jonathan del Strother, Johannes Schindelin.
Thread: https://gitlist.dev/t/10229

## Jonathan del Strother, 2007-10-10 09:40

Subject: [BUG] git-filter-branch and filename case changes on insensitive file systems
Message-ID: <80A15F58-5A53-419B-9E22-E967CD590A12@steelskies.com>
URL: https://gitlist.dev/e/80A15F58-5A53-419B-9E22-E967CD590A12%40steelskies.com

```
My repo has a change where a directory named Src was renamed to src.   
When I run "git filter-branch HEAD", my repo history is  rewritten so  
it appears that the Src directory was simply deleted.  I'm using case  
insensitive HFS+.
Fortunately, I can work around this by using -d to work off a case  
sensitive HFS+ volume - "git filter-branch -d /Volumes/CaseSensitive/ 
test HEAD" correctly changes nothing.

Anyone know why this happens?

Jon

```

## Johannes Schindelin, 2007-10-10 13:39

Subject: Re: [BUG] git-filter-branch and filename case changes on insensitive file systems
Message-ID: <Pine.LNX.4.64.0710101436570.4174@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0710101436570.4174%40racer.site
In-Reply-To: <80A15F58-5A53-419B-9E22-E967CD590A12@steelskies.com>

```
Hi,

On Wed, 10 Oct 2007, Jonathan del Strother wrote:

> My repo has a change where a directory named Src was renamed to src.

That is no problem for git-filter-branch.

> I'm using case insensitive HFS+.

That is the problem.

Of course, we could work around that in git, but frankly, you will turn 
into problems once you have files whose names differ only in case.  And I 
am certain somebody will come soon and report this as a bug in git!

I vote for wont-fix (or more accurately "invalid") in git and 
please-fix-in-your-setup.

Ciao,
Dscho

```

## Jonathan del Strother, 2007-10-10 13:49

Subject: Re: [BUG] git-filter-branch and filename case changes on insensitive file systems
Message-ID: <21D113DE-FEA8-4CD4-BFC6-3C57C1980597@steelskies.com>
URL: https://gitlist.dev/e/21D113DE-FEA8-4CD4-BFC6-3C57C1980597%40steelskies.com
In-Reply-To: <Pine.LNX.4.64.0710101436570.4174@racer.site>

```

On 10 Oct 2007, at 14:39, Johannes Schindelin wrote:

> On Wed, 10 Oct 2007, Jonathan del Strother wrote:
>
>> My repo has a change where a directory named Src was renamed to src.
>
> That is no problem for git-filter-branch.
>
>> I'm using case insensitive HFS+.
>
> That is the problem.

...

> I vote for wont-fix (or more accurately "invalid") in git and
> please-fix-in-your-setup.

Would love to switch to case sensitive HFS+, but it causes a number of  
problems for OS X users - a number of 3rd party applications don't  
bother supporting case sensitive formatting (notably Adobe :/ ).


I appreciate that it's difficult and/or impossible to make certain  
operations work on case insensitive FS's, but it seems like git ought  
to at least complain noisily when it encounters such a situation...

```
