git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] t6031: Add a testcase covering multiple renames across a D/F conflict

From
Elijah Newren <newren@gmail.com>
Date
Aug 17, 2010, 23:53 UTC
Message-ID
<1282089199-17253-2-git-send-email-newren@gmail.com>
In-Reply-To
<1282089199-17253-1-git-send-email-newren@gmail.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
---
 t/t6031-merge-recursive.sh |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/t/t6031-merge-recursive.sh b/t/t6031-merge-recursive.sh
index 8a3304f..aa235b9 100755
--- a/t/t6031-merge-recursive.sh
+++ b/t/t6031-merge-recursive.sh
@@ -57,4 +57,32 @@ 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 --orphan main &&
+	git rm -rf . &&
+
+	echo "just a file" > sub1 &&
+	mkdir -p sub2 &&
+	echo content > sub2/file1 &&
+	echo content > sub2/file2 &&
+	echo content > sub2/file3 &&
+	mkdir simple &&
+	echo base > simple/bar &&
+	git add -A &&
+	git commit -m base &&
+
+	git checkout -b other &&
+	echo more >> simple/bar &&
+	git commit -a -m changesimplefile &&
+
+	git checkout main &&
+	git rm sub1 &&
+	git mv sub2 sub1 &&
+	git commit -m changefiletodir &&
+
+	git merge other
+'
+
+
 test_done
-- 
1.7.2.1.227.g086c8
Previous: Elijah NewrenNext: Elijah Newren
Message 2 of 6 in “Fix multiple file rename across D/F conflict”
  1. 0/2 Fix multiple file rename across D/F conflictElijah Newren, Aug 17, 2010
  2. 1/2 t6031: Add a testcase covering multiple renames across a D/F conflictElijah Newren, Aug 17, 2010
  3. 2/2 merge-recursive: Fix multiple file rename across D/F conflictElijah Newren, Aug 17, 2010
  4. Junio C HamanoAug 18, 2010
  5. Junio C HamanoAug 18, 2010
  6. Elijah NewrenAug 20, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.