diff options
author | Elijah Newren <newren@gmail.com> | 2021-07-22 05:04:48 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-22 11:54:29 -0700 |
commit | 031e2f7ae195069d00d21cde906fce5b0318dbdd (patch) | |
tree | 61c6b5cb09f65ab91fe17c72c7cdfc5d8213c5f0 /t/t6409-merge-subtree.sh | |
parent | pull: make --rebase and --no-rebase override pull.ff=only (diff) | |
download | tgif-031e2f7ae195069d00d21cde906fce5b0318dbdd.tar.xz |
pull: abort by default when fast-forwarding is not possible
We have for some time shown a long warning when the user does not
specify how to reconcile divergent branches with git pull. Make it an
error now.
Initial-patch-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6409-merge-subtree.sh')
-rwxr-xr-x | t/t6409-merge-subtree.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t6409-merge-subtree.sh b/t/t6409-merge-subtree.sh index d406b2343c..ba7890ec52 100755 --- a/t/t6409-merge-subtree.sh +++ b/t/t6409-merge-subtree.sh @@ -100,7 +100,7 @@ test_expect_success 'merge update' ' git checkout -b topic_2 && git commit -m "update git-gui" && cd ../git && - git pull -s subtree gui topic_2 && + git pull --no-rebase -s subtree gui topic_2 && git ls-files -s >actual && ( echo "100644 $o3 0 git-gui/git-gui.sh" && @@ -129,7 +129,7 @@ test_expect_success 'initial ambiguous subtree' ' test_expect_success 'merge using explicit' ' cd ../git && git reset --hard topic_2 && - git pull -Xsubtree=git-gui gui topic_2 && + git pull --no-rebase -Xsubtree=git-gui gui topic_2 && git ls-files -s >actual && ( echo "100644 $o3 0 git-gui/git-gui.sh" && @@ -142,7 +142,7 @@ test_expect_success 'merge using explicit' ' test_expect_success 'merge2 using explicit' ' cd ../git && git reset --hard topic_2 && - git pull -Xsubtree=git-gui2 gui topic_2 && + git pull --no-rebase -Xsubtree=git-gui2 gui topic_2 && git ls-files -s >actual && ( echo "100644 $o1 0 git-gui/git-gui.sh" && |