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

Re: Bug? git commit fileA tries to delete fileB and other oddities

From
Jeff King <peff@peff.net>
Date
Dec 17, 2019, 07:33 UTC
Message-ID
<20191217073306.GA3313061@coredump.intra.peff.net>
In-Reply-To
<CA+PLxnWLWckpZdjy8XQLbO0EVJ1khiyUYi1T=Mcy_rBkvbLpZA@mail.gmail.com>
On Mon, Dec 16, 2019 at 09:50:33AM +0000, Mikael Simonsson wrote:
Show 6 quoted lines
> I will try to recreate the problem with a new repository.
> 
> So far I think I've narrowed it down to a bug introduced in git 2.20.0.
> 
> Not buggy:
> [...]

If you can build Git from source, you might try using "git bisect" to find the exact commit where the problem starts.

Show 15 quoted lines
> The buggy versions all try to delete fileX when running "git commit fileA":
> 
> % git commit fileA
> 
> # Please enter the commit message for your changes. Lines starting
> # with '#' will be ignored, and an empty message aborts the commit.
> #
> # On branch master
> # Your branch is up to date with 'origin/master'.
> #
> # Changes to be committed:
> #       deleted:    fileX
> #       modified:   fileA
> #
> # Changes not staged for commit:

Is there anything about "fileX" and "fileA"'s names that might be relevant? E.g., might they case-fold to the same name or something?

-Peff
Previous: Mikael SimonssonNext: Mikael Simonsson
Message 4 of 5 in “Bug? git commit fileA tries to delete fileB and other oddities”
  1. Mikael SimonssonDec 14, 2019
  2. Johannes SchindelinDec 15, 2019
  3. Mikael SimonssonDec 16, 2019
  4. Jeff KingDec 17, 2019
  5. Mikael SimonssonDec 17, 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.