X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft6031-merge-recursive.sh;h=bd75e0e6430ff6e536f0b10d28cc4793d0f7fe6c;hb=c208e05bd9880028c980fafbc5dda3d17a603ac1;hp=8a3304fb0b5901fb02435d3b77c3d049404f4e25;hpb=78b77c491ff21e27dbaf1381268aeb380f0607b8;p=git.git diff --git a/t/t6031-merge-recursive.sh b/t/t6031-merge-recursive.sh index 8a3304fb0..bd75e0e64 100755 --- a/t/t6031-merge-recursive.sh +++ b/t/t6031-merge-recursive.sh @@ -57,4 +57,35 @@ test_expect_success FILEMODE 'verify executable bit on file' ' test -x file2 ' +test_expect_success 'merging with triple rename across D/F conflict' ' + git reset --hard HEAD && + git checkout -b main && + git rm -rf . && + + echo "just a file" >sub1 && + mkdir -p sub2 && + echo content1 >sub2/file1 && + echo content2 >sub2/file2 && + echo content3 >sub2/file3 && + mkdir simple && + echo base >simple/bar && + git add -A && + test_tick && + git commit -m base && + + git checkout -b other && + echo more >>simple/bar && + test_tick && + git commit -a -m changesimplefile && + + git checkout main && + git rm sub1 && + git mv sub2 sub1 && + test_tick && + git commit -m changefiletodir && + + test_tick && + git merge other +' + test_done