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 20, 2023, 17:20 UTC
Message-ID
<CAHp75VeMoXZdr++6BiOMhOnSqm5rPe+t0bNzpLJsCuGp8NU=wA@mail.gmail.com>
In-Reply-To
<20230320170158.GA2614670@coredump.intra.peff.net>
On Mon, Mar 20, 2023 at 7:02 PM Jeff King <peff@peff.net> wrote:
> [Please don't put random folks in the to/cc unless you think they have
> specific knowledge related to your problem.]

Sorry about that, but my reaction was to the silence. I found your name is a top contributor, so that's why I have chosen your name.

Show 21 quoted lines
> On Mon, Mar 20, 2023 at 02:10:38PM +0200, Andy Shevchenko wrote:
>
> > > > With the new release I have got an error
> > > >
> > > >   fatal: 'netboot' is already checked out at ...
> > > >
> > > > To work around this I have to split the above to
> > > >
> > > >   git checkout --ignore-other-worktrees "$branch"
> > > >   git rebase --rebase-merges -X ours --onto "$newbase" "$oldbase"
> > > >
> > > > which makes all these too inconvenient.
> > > >
> > > > Any suggestions?
> >
> > So, what should I do? Today I got again to help manually with my (used
> > to working) scripts.
>
> Running "git log --grep=already.checked.out" suggests that it may be
> b5cabb4a967 (rebase: refuse to switch to branch already checked out
> elsewhere, 2020-02-23).
Thank you.

Indeed, reverting that (manually as it's a conflict with v2.40.0 current tree) fixes my issue.

> 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.

-- 
With Best Regards,
Andy Shevchenko
Previous: Jeff KingNext: Felipe Contreras
Message 6 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.