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

Re: git rebase issue

From
Andy Shevchenko <andy.shevchenko@gmail.com>
Date
Mar 24, 2023, 07:52 UTC
Message-ID
<CAHp75VfSdth4B-oW8JCt4kBkehu6+B9ueQAJL1g99Ev3RiMKoQ@mail.gmail.com>
In-Reply-To
<CAMP44s2hEudOpOcyXzZQNYtQSHXOd4NiPBboH=90RHEgF_Lamg@mail.gmail.com>

On Thu, Mar 23, 2023 at 10:38 PM Felipe Contreras <felipe.contreras@gmail.com> wrote:

Show 18 quoted lines
>
> On Mon, Mar 20, 2023 at 12:11 PM Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
> > On Mon, Mar 20, 2023 at 7:02 PM Jeff King <peff@peff.net> wrote:
>
> > > Adding its author to the cc, who may be able to say more. But my
> > > understanding is that this was probably fixing a bug (though I don't
> > > know all the implications of having a branch checked out in multiple
> > > worktrees).
> >
> > Note, in my case it's "checked" in the BARE repository, which means
> > it's actually not.
> > This case shouldn't be an impediment or racy AFAIU.
>
> In that case I agree it should work, but when I tried to reproduce the
> issue the bare repository is ignored, only worktrees are considered.
>
> Are you sure the branch isn't checked out in other worktree(s)?
Yes. Since the commit was in v2.26 already, and I have noticed the
issue only recently, there are a few possibilities:
1) Debian is to slow to update a Git (doesn't sound like the case);
2) New version of the Git does something in the configuration files
that unveils the issue;
3) Something else I've been missing?

As for 2) I have found a new config.worktree which I tried to remove, nothing changed. Also I disabled extended worktree configuration in the main (~/.gitconfig) one. Didn't help either.

I have a bare repo with a Linux kernel and two worktrees. The HEAD in the bare points out to one of the branches which I try to rebase.

BARE:xxx (as shown by Git prompt helper in the Bash)
`git rebase -X ours --onto "vN+1" "vN" xxx` fails.
-- 
With Best Regards,
Andy Shevchenko
Previous: Felipe ContrerasNext: Andy Shevchenko
Message 8 of 10 in “git rebase issue”
  1. Andy ShevchenkoMar 13, 2023
  2. Andy ShevchenkoMar 13, 2023
  3. Andy ShevchenkoMar 20, 2023
  4. Felipe ContrerasMar 20, 2023
  5. Jeff KingMar 20, 2023
  6. Andy ShevchenkoMar 20, 2023
  7. Felipe ContrerasMar 23, 2023
  8. Andy ShevchenkoMar 24, 2023
  9. Andy ShevchenkoMar 22, 2025
  10. Eric SunshineMar 23, 2025

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.