Re: Branch Name Case Sensitivity
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 27, 2014, 19:50 UTC
- Message-ID
- <xmqqvbw0xrl6.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CAJHY66EQD280QgXBCoZU4y_aqSEu3A1hXzeW7X-rtT6vMZ92oA@mail.gmail.com>
Lee Hopkins <leerhop@gmail.com> writes:
Show 12 quoted lines
> Last week I ran across a potential bug with branch names on case > insensitive file systems, the complete scenario can be found here: > > https://groups.google.com/forum/#!topic/msysgit/ugKL-sVMiqI > > The tldr is because refs are stored as plain text files except when > packed into packed-refs, Git occasionally cannot tell the difference > between branches whose names only differ in case, and this could > potentially lead to the loss of history. > > It sounds like this is a known issue, and after some more digging I > did find some older threads related to this topic, but nothing recent.
Yes, it is not limited to branch names but also applies to tags and filenames in your working tree.
Perhaps git-{branch,tag}.txt and possibly gitrepository-layout.txt in Documentation/ may need a new "*Note*" section to warn against this.
Thanks.