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

[PATCH] Fix t3411.3 to actually rebase something

From
Johannes Sixt <j6t@kdbg.org>
Date
May 18, 2012, 13:48 UTC
Message-ID
<4FB65345.3090201@kdbg.org>

The test intends to rebase a branchy history onto a later commit, but it forgot to reset HEAD back to an earlier commit before it set up the side branches. In the end, every "rebased" commit was only a fast-forward and the 'rebase -p' did not change the commit graph at all. Insert the missing checkout that moves to an earlier commit.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
---
 Noticed while I was working on replacing 'git merge' by 'git
 cherry-pick' in the rebase -p code path.
 t/t3411-rebase-preserve-around-merges.sh | 1 +
 1 file changed, 1 insertion(+)
diff --git a/t/t3411-rebase-preserve-around-merges.sh
b/t/t3411-rebase-preserve-around-merges.sh
index ace8e54..dc81bf2 100755
--- a/t/t3411-rebase-preserve-around-merges.sh
+++ b/t/t3411-rebase-preserve-around-merges.sh
@@ -56,6 +56,7 @@ test_expect_success 'squash F1 into D1' '
 # And rebase G1..M1 onto E2

 test_expect_success 'rebase two levels of merge' '
+	git checkout A1 &&
 	test_commit G1 &&
 	test_commit H1 &&
 	test_commit I1 &&
-- 
1.7.10.2.529.g0c18cfd
Next: Stephen Haberman
Message 1 of 2 in “Fix t3411.3 to actually rebase something”
  1. Fix t3411.3 to actually rebase somethingJohannes Sixt, May 18, 2012
  2. Stephen HabermanMay 18, 2012

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.