Thread (12 messages) flat view 12 messages, 5 authors, 2021-07-14

Re: [PATCH] pull: abort if --ff-only is given and fast-forwarding is impossible

From: Felipe Contreras <hidden>
Date: 2021-07-14 17:31:26

Elijah Newren wrote:
On Wed, Jul 14, 2021 at 1:37 AM Son Luong Ngoc [off-list ref] wrote:
quoted
I am out of the loop in this thread but I have been seeing strange behaviors
with pull.rebase=true in the 'next' branch and also in the 'master'
branch in recent days.
I'm not surprised it happens with recent versions, but I'd expect this
to have happened with older versions too.  Is this not reproducible
with git-2.32.0 or older git versions?
I already provided an accurate target [1].
quoted
  > git version
  git version 2.32.0.432.gabb21c7263
  > git config -l | grep pull
  pull.rebase=true
  pull.ff=false
So, you have conflicting configuration options set.  pull.ff=false
maps to --no-ff which is documented to create a merge.
pull.rebase=true maps to --rebase which says to run a rebase.

You probably want to drop one of these.
`pull.ff` will be honored by `git pull --merge`.

[1] https://lore.kernel.org/git/60eeff69293fb_10e52087a@natae.notmuch/ (local)

-- 
Felipe Contreras
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help