]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jc/fix-pull-ff-only-when-already-up-to-date'
authorJunio C Hamano <gitster@pobox.com>
Wed, 10 Nov 2021 23:01:19 +0000 (15:01 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Nov 2021 23:01:19 +0000 (15:01 -0800)
"git pull --ff-only" and "git pull --rebase --ff-only" should make
it a no-op to attempt pulling from a remote that is behind us, but
instead the command errored out by saying it was impossible to
fast-forward, which may technically be true, but not a useful thing
to diagnose as an error.  This has been corrected.

* jc/fix-pull-ff-only-when-already-up-to-date:
  pull: --ff-only should make it a noop when already-up-to-date

1  2 
builtin/pull.c

diff --cc builtin/pull.c
Simple merge