]> git.ipfire.org Git - thirdparty/git.git/commit
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)
commit7c7cf62c485f527bee6d3eb7e37dcfbf8064cab2
tree1ae588b26347be9651758ca0c3137245f07b0fef
parent6c220937e2b26d85920bf2d38ff2464a0d57fd6b
parent361cb52383fb986f76a34506bdec9a1dd11133f0
Merge branch 'jc/fix-pull-ff-only-when-already-up-to-date'

"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
builtin/pull.c