Merge branch 'tk/subtree-merge-not-ff-only'

When "git subtree" wants to create a merge, it used "git merge" and
let it be affected by end-user's "merge.ff" configuration, which
has been corrected.

* tk/subtree-merge-not-ff-only:
  subtree: force merge commit
This commit is contained in:
Junio C Hamano 2022-02-17 16:25:04 -08:00
Родитель 45fe28c951 9158a3564a
Коммит 0ac270cf7c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -975,10 +975,10 @@ cmd_merge () {
if test -n "$arg_addmerge_message"
then
git merge -Xsubtree="$arg_prefix" \
git merge --no-ff -Xsubtree="$arg_prefix" \
--message="$arg_addmerge_message" "$rev"
else
git merge -Xsubtree="$arg_prefix" $rev
git merge --no-ff -Xsubtree="$arg_prefix" $rev
fi
}