Some years ago I found out that Git had a particular nasty behavior when
changing file names where only case-sensitivity happened on
case-insensitive volumes on Mac. I have not confirmed if this remains or
has been solved.

To recreate;

On Linux box
1. touch abc.txt
2. git add abc.txt
3. git commit -m "test" abc.txt
4. git push

Then do a git clone on Mac OSX
5. git clone ...

Back on Linux
6. mv abc.txt Abc.txt
7. git commit -m "test" Abc.txt
8. git push

Then on Mac OSX
9. git pull   // fails about can not rename as file already exist (itself).

After being struck with it once, I have used case-sensitive journal FS on
MAC OSX. Would be great to know if someone knows for a fact that it has
been fixed (or not). Otherwise, I suggest to test it out (no Linux at my
end at the moment)

Niclas

On Sat, Dec 31, 2016 at 12:37 AM, Emilian Bold <[email protected]> wrote:

> Yeah, I first noticed it with main-silver on macOS and I assumed it's some
> git issue on macOS.
>
> Then Chris had the same problem on Windows.
>
> Now I saw the problem with releases/ too so I looked deeper into the cause.
>
>
> În vin., 30 dec. 2016 la 18:07 Benno Markiewicz <
> [email protected]> a scris:
>
> > These seems to be some of the problems ChrisL recently had, aren't they?
> >
> >
> >
> > Den 30 dec. 2016 2:10 em skrev "Emilian Bold" <[email protected]>:
> >
> >
> >
> > > Hello,
> >
> > >
> >
> > > Because I ran the conversion on macOS and git tries clumsily to be
> >
> > > helpful I am having some file name case sensitivity problems.
> >
> > >
> >
> > > For example, html.lexer/src/org/netbeans/lib/html/lexer/HtmlLexer.java
> >
> > > is checkout out as HTMLLexer.java
> >
> > >
> >
> > > There are some other 10-20 files like this.
> >
> > >
> >
> > > Manually renaming these files fixes everything and the build runs.
> >
> > >
> >
> > > I don't believe there is any way to fix the repositories other then
> >
> > > making sure I execute
> >
> > >
> >
> > > git config core.ignorecase false
> >
> > >
> >
> > > and then re-convert everything.
> >
> > >
> >
> > > Which I will do next year.
> >
> > >
> >
> > > I have also reported this for hg-fast-export
> >
> > > https://github.com/frej/fast-export/issues/87
> >
> > >
> >
> > > --emi
> >
> > >
> >
> >
>



-- 
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java

Reply via email to