From 63d9aad326986f3c89285282ff7daf0c9bfa8c96 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 13 Jan 2011 11:56:16 -0800 Subject: [PATCH] Fix mismerge at 37ef456 Two tests have been lost and I do not know why... Signed-off-by: Junio C Hamano --- t/t3032-merge-recursive-options.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/t/t3032-merge-recursive-options.sh b/t/t3032-merge-recursive-options.sh index 44f5421be..2b17311cb 100755 --- a/t/t3032-merge-recursive-options.sh +++ b/t/t3032-merge-recursive-options.sh @@ -110,6 +110,20 @@ test_expect_success '--ignore-space-change makes merge succeed' ' git merge-recursive --ignore-space-change HEAD^ -- HEAD remote ' +test_expect_success 'naive cherry-pick fails' ' + git read-tree --reset -u HEAD && + test_must_fail git cherry-pick --no-commit remote && + git read-tree --reset -u HEAD && + test_must_fail git cherry-pick remote && + test_must_fail git update-index --refresh && + grep "<<<<<<" text.txt +' + +test_expect_success '-Xignore-space-change makes cherry-pick succeed' ' + git read-tree --reset -u HEAD && + git cherry-pick --no-commit -Xignore-space-change remote +' + test_expect_success '--ignore-space-change: our w/s-only change wins' ' q_to_cr <<-\EOF >expected && justice and holiness and is the nurse of his age and theQ -- 2.30.2