From ab5f42422d7e025c3151d91cc5ec0d20b9a80922 Mon Sep 17 00:00:00 2001 From: John Keeping Date: Sat, 27 Apr 2013 14:40:33 +0100 Subject: merge-tree: fix typo in "both changed identically" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit aacecc3 (merge-tree: don't print entries that match "local" - 2013-04-07) had a typo causing the "same in both" check to be incorrect and check if both the base and "their" versions are removed instead of checking that both the "our" and "their" versions are removed. Fix this. Reported-by: René Scharfe Test-written-by: René Scharfe Signed-off-by: John Keeping Signed-off-by: Junio C Hamano --- t/t4300-merge-tree.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 't/t4300-merge-tree.sh') diff --git a/t/t4300-merge-tree.sh b/t/t4300-merge-tree.sh index bd43b3d8ef..2defb422e8 100755 --- a/t/t4300-merge-tree.sh +++ b/t/t4300-merge-tree.sh @@ -205,6 +205,19 @@ EXPECTED test_cmp expected actual ' +test_expect_success 'file remove A, B (same)' ' + cat >expected <<\EXPECTED && +EXPECTED + + git reset --hard initial && + test_commit "rm-a-b-base" "ONE" "AAA" && + git rm ONE && + git commit -m "rm-a-b" && + git tag "rm-a-b" && + git merge-tree rm-a-b-base rm-a-b rm-a-b >actual && + test_cmp expected actual +' + test_expect_success 'file change A, remove B' ' cat >expected <<\EXPECTED && removed in remote -- cgit v1.2.3