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

Repo state broken due to mismatched file name casing during merge

From
RGRafał Grzybowski <aguyngueran@gmail.com>
Date
Sep 2, 2020, 16:26 UTC
Message-ID
<CANG6M-ri1uvEPCcssP=Q0iM25Vhr5QZ220zUUhMdH4AVR9OLSw@mail.gmail.com>
What did you do before the bug happened? (Steps to reproduce your issue)

mkdir repo cd repo

git init

"sample file" > file.txt git add file.txt git commit -m "Added file.txt"

git checkout -b other_branch echo other file > other_file.txt git add other_file.txt git commit -m "Added other_file.txt"

git checkout master echo Other file > Other_file.txt git add Other_file.txt git commit -m "Added Other_file.txt"

git merge other_branch git status

What did you expect to happen? (Expected behavior)
A clean state, no unstaged changes.
What happened instead? (Actual behavior)

There is always an unstaged file other_file.txt which case changes if I try to discard and the unstaged change stays. If I try to delete the file, I get two unstaged file removal changes.

What's different between what you expected and what actually happened?

The state should be clean. It looks like the merge process broke something due to the casing.

Anything else you want to add:

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.28.0.windows.1 cpu: x86_64 built from commit: 77982caf269b7ee713a76da2bcf260c34d3bf7a7 sizeof-long: 4 sizeof-size_t: 8 shell-path: /bin/sh uname: Windows 10.0 18363 compiler info: gnuc: 10.2 libc info: no libc information available $SHELL (typically, interactive shell): <unset>

Next: brian m. carlson
Message 1 of 3 in “Repo state broken due to mismatched file name casing during merge”
  1. Rafał GrzybowskiSep 2, 2020
  2. brian m. carlsonSep 2, 2020
  3. Rafał GrzybowskiSep 3, 2020

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.