summaryrefslogtreecommitdiff
path: root/t/t6031-merge-recursive.sh
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2010-08-17 23:53:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-08-18 19:08:05 (GMT)
commit5601ba6574cfbd1249a6d38b72159a7d3ccf8315 (patch)
treede3761e7c4eeb430f8ca391873c83e9ce8e79007 /t/t6031-merge-recursive.sh
parenta3e413675478585206966bdbb7fd7bf24b9d1ea7 (diff)
downloadgit-5601ba6574cfbd1249a6d38b72159a7d3ccf8315.zip
git-5601ba6574cfbd1249a6d38b72159a7d3ccf8315.tar.gz
git-5601ba6574cfbd1249a6d38b72159a7d3ccf8315.tar.bz2
t6031: Add a testcase covering multiple renames across a D/F conflict
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6031-merge-recursive.sh')
-rwxr-xr-xt/t6031-merge-recursive.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/t/t6031-merge-recursive.sh b/t/t6031-merge-recursive.sh
index 8a3304f..c50ee29 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_failure '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