]> git.ipfire.org Git - thirdparty/git.git/commit
pull: abort if --ff-only is given and fast-forwarding is impossible
authorAlex Henrie <alexhenrie24@gmail.com>
Wed, 21 Jul 2021 01:42:19 +0000 (01:42 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Jul 2021 04:43:12 +0000 (21:43 -0700)
commit3d5fc24daefbdf56bc36a491aed0b7990fa0c62f
treeef359b69c3e219588b10455b6fe7d89976df9f93
parent1d25e5bdf5263a227d233eafcf028b36c72716f6
pull: abort if --ff-only is given and fast-forwarding is impossible

The warning about pulling without specifying how to reconcile divergent
branches says that after setting pull.rebase to true, --ff-only can
still be passed on the command line to require a fast-forward. Make that
actually work.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
[en: updated tests; note 3 fixes and 1 new failure]
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
advice.c
advice.h
builtin/merge.c
builtin/pull.c
t/t7601-merge-pull-config.sh