{"thread":{"id":"36164","subject":"[PATCH/RFC] t3404: test autosquash for fixup! commits with funny messages","startedAt":"2014-03-14T23:58:11Z","lastAt":"2014-03-14T23:58:11Z","messageCount":1,"participants":["Uwe Storbeck"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"236764","messageId":"20140314235811.GA4213@ibr.ch","threadId":"36164","inReplyTo":null,"subject":"[PATCH/RFC] t3404: test autosquash for fixup! commits with funny messages","fromName":"Uwe Storbeck","fromEmail":"uwe@ibr.ch","sentAt":"2014-03-14T23:58:11Z","receivedAt":"2014-03-14T23:58:11Z","isPatch":true,"sender":{"key":"uwe@ibr.ch","avatar":null},"body":"This commit adds a test to verify the correct behavior when\nrebase -i is used to autosquash fixup! commits where the commit\nmessage contains a backslash sequence (\\n).\n\nWhen echo is used instead of printf to handle such a commit\nmessage the test will fail on shells (e.g. dash) where the echo\ncommand interprets backslash sequences as control characters.\n\nSigned-off-by: Uwe Storbeck <uwe@ibr.ch>\n---\n t/t3404-rebase-interactive.sh | 12 ++++++++++++\n 1 file changed, 12 insertions(+)\n\ndiff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh\nindex 50e22b1..6d32661 100755\n--- a/t/t3404-rebase-interactive.sh\n+++ b/t/t3404-rebase-interactive.sh\n@@ -798,6 +798,18 @@ test_expect_success 'rebase-i history with funny messages' '\n \ttest_cmp expect actual\n '\n \n+test_expect_success 'autosquash fixup! commits with funny messages' '\n+\ttest_when_finished \"git rebase --abort || :\" &&\n+\techo >>file1 &&\n+\tgit commit -a -m \"something that looks like a newline (\\n)\" &&\n+\techo >>file1 &&\n+\tgit commit -a --fixup HEAD &&\n+\tset_fake_editor &&\n+\tFAKE_LINES=\"\" &&\n+\texport FAKE_LINES &&\n+\tgit rebase -i --autosquash HEAD~2\n+'\n+\n \n test_expect_success 'prepare for rebase -i --exec' '\n \tgit checkout master &&\n-- \n1.9.0\n"}]}