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

Re: Possible minor bug in Git

From
Philip Oakley <philipoakley@iee.org>
Date
Feb 9, 2019, 18:19 UTC
Message-ID
<788eefef-f677-f0ce-7e02-dd85b11da78a@iee.org>
In-Reply-To
<nycvar.QRO.7.76.6.1902072040360.41@tvgsbejvaqbjf.bet>
Hi Guiseppe,
On 07/02/2019 19:41, Johannes Schindelin wrote:
Show 5 quoted lines
> Hi Giuseppe,
>
> On Wed, 6 Feb 2019, Giuseppe Crinò wrote:
>
>> I wanted to have a look at the bug, and I can correctly reproduce it using version 2.20.1.windows.1.
Thank you for having a look.

The root cause of the issues will most probably be use of a case insensitive file system on Windows (and Mac). There is a configuration flag `core.ignoreCase` [1] that is normally auto detected that can be used to decide when the checks should be done and advice [2] or warnings given.

There are also similar case issues with branch names should you want to go that far. In any case you should probably at least cover the full utf-8 filenames, not just ascii ones.

Show 14 quoted lines
>>
>> To start to even think of fixing this bug I need to build the source for Windows, but I got lost on how to do that.
> Does this help?
>
> https://github.com/git-for-windows/git/wiki/Building-Git
>
> Ciao,
> Johannes
>
>> Is it correct that I should cross-compile from a POSIX system (GNU/Linux), using x86_64-w64-mingw32-gcc and Gnulib to produce a static executable?
>>
>> Am I missing something? How does people here build for Windows?
>>
>> Giuseppe
--
Philip
[1] https://git-scm.com/docs/git-config#git-config-coreignoreCase
[2] https://git-scm.com/docs/git-config#git-config-advice
Previous: Torsten BögershausenNext: Giuseppe Crino'
Message 9 of 10 in “Possible minor bug in Git”
  1. Angelo MelonasJan 31, 2019
  2. Angelo MelonasJan 31, 2019
  3. Torsten BögershausenJan 31, 2019
  4. Angelo MelonasFeb 1, 2019
  5. Torsten BögershausenFeb 2, 2019
  6. Giuseppe CrinòFeb 6, 2019
  7. Johannes SchindelinFeb 7, 2019
  8. Torsten BögershausenFeb 8, 2019
  9. Philip OakleyFeb 9, 2019
  10. Giuseppe Crino'Feb 10, 2019

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.