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

Re: pull.rebase config option broken in 2.33.1

From
Elijah Newren <newren@gmail.com>
Date
Nov 27, 2021, 05:26 UTC
Message-ID
<CABPp-BGDFiAF=M=n8Ah7LZXk-f75NezF0F=BPD44a4fMrtsD-w@mail.gmail.com>
In-Reply-To
<YaG8gUnikxtQs5zx@coredump.intra.peff.net>
On Fri, Nov 26, 2021 at 9:05 PM Jeff King <peff@peff.net> wrote:
Show 29 quoted lines
>
> On Fri, Nov 26, 2021 at 02:43:44PM -0800, Elijah Newren wrote:
>
> > On Fri, Nov 26, 2021 at 1:45 PM Jeff King <peff@peff.net> wrote:
> > >
> > > On Fri, Nov 26, 2021 at 04:44:52PM -0500, Jeff King wrote:
> > >
> > > > +cc Alex and Elijah from the original 3d5fc24dae (pull: abort if
> > > > --ff-only is given and fast-forwarding is impossible, 2021-07-21) in
> > > > case they have further thoughts, but I _think_ this is working as
> > > > designed.
> > >
> > > Whoops, forgot the cc. Original message in full below.
> >
> > I believe this was already fixed in 2.34.1 in commit ea1954af77
> > ("pull: should be noop when already-up-to-date", 2021-11-17).
>
> I thought that at first, too, but this case is a bit different:
>
> > > > In the bug I linked (and what got fixed in 2.34.1), the issue is that
> > > > when the local branch is ahead of the remote, we don't say "up to date",
> > > > but complain about fast-forwards.
> > > >
> > > > It's hard to tell from the output above, but it looks like you have a
> > > > case where there are new commits both locally and on the remote? In
> > > > which case a rebase would work just fine.
>
> I think the key thing here is that (AFAICT) the behavior is unchanged
> unless the user has set pull.ff=only explicitly.

Ah, I see there were two parts to their report, one of which is the issue fixed in 2.34.1. I'll respond to his original email and ask if he has pull.ff=only set and explain how that interacts with pull.rebase.

Previous: Jeff KingNext: Dmitry Marakasov
Message 8 of 11 in “pull.rebase config option broken in 2.33.1”
  1. Dmitry MarakasovNov 2, 2021
  2. Jeff KingNov 2, 2021
  3. Dmitry MarakasovNov 26, 2021
  4. Jeff KingNov 26, 2021
  5. Jeff KingNov 26, 2021
  6. Elijah NewrenNov 26, 2021
  7. Jeff KingNov 27, 2021
  8. Elijah NewrenNov 27, 2021
  9. Dmitry MarakasovDec 2, 2021
  10. Elijah NewrenDec 2, 2021
  11. Elijah NewrenNov 27, 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.