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

Re: v2.25 regression: cherry-pick alters patch and leaves working tree dirty

From
Elijah Newren <newren@gmail.com>
Date
Jun 26, 2021, 17:14 UTC
Message-ID
<CABPp-BFqpdjZVY6Jw4tz7z+4UdiPJpD+1Ymv=6QVBm_Apb3xbQ@mail.gmail.com>
In-Reply-To
<9ef09567-d69c-0fba-a09c-70095a21a3a9@mit.edu>
On Sun, Jun 13, 2021 at 12:45 AM Anders Kaseorg <andersk@mit.edu> wrote:
Show 18 quoted lines
>
> On 6/12/21 11:57 PM, Elijah Newren wrote:
> > There's two bugs here, and they actually predate v2.25.  If you put
> > all your files in a subdirectory (e.g. 'subdir/bar' instead of 'bar'
> > and 'subdir/dir/bar' instead of 'dir/bar'), then the same bug
> > reproduces going back many more versions.  The changes in v2.25 to
> > support directory rename detection of a subdirectory to the root just
> > allowed this bug to happen at the toplevel as well.
>
> You’re right.  I’m sure you’ve already done this bisect, but for
> posterity, after that modification to the test case (‘mkdir subdir; cd
> subdir’ after ‘git init’), it reproduces back as far as
> 9c0743fe1e45b3a0ffe166ac949a27f95a3e5c34 (v2.18.0-rc0~2^2~20)
> “merge-recursive: apply necessary modifications for directory renames”.
>
> Thanks for the quick investigation!
>
> Anders

Patches posted here: https://lore.kernel.org/git/pull.1039.git.git.1624727121.gitgitgadget@gmail.com/

Previous: Anders Kaseorg
Message 4 of 4 in “v2.25 regression: cherry-pick alters patch and leaves working tree dirty”
  1. Anders KaseorgJun 12, 2021
  2. Elijah NewrenJun 13, 2021
  3. Anders KaseorgJun 13, 2021
  4. Elijah NewrenJun 26, 2021

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.