{"thread":{"id":"13646","subject":"[PATCH] Extend t3404-rebase-interactive.sh test: \"no changes are a nop\"","startedAt":"2008-05-23T23:13:22Z","lastAt":"2008-05-23T23:13:22Z","messageCount":1,"participants":["Stephan Beyer"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"77613","messageId":"alpine.DEB.1.10.0805240101530.3980@euler.pkqs.net","threadId":"13646","inReplyTo":null,"subject":"[PATCH] Extend t3404-rebase-interactive.sh test: \"no changes are a nop\"","fromName":"Stephan Beyer","fromEmail":"s-beyer@gmx.net","sentAt":"2008-05-23T23:13:22Z","receivedAt":"2008-05-23T23:13:22Z","isPatch":true,"sender":{"key":"s-beyer@gmx.net","avatar":"https://avatars.githubusercontent.com/u/143889?v=4"},"body":"Now the test \"no changes are a nop\" checks additionally, \nthat HEAD is commit I and a symbolic ref for branch2.\n\nThe new test fails on a situation like this, for example:\n$ git branch -v\n* (no branch) cac536e I\n   branch1     1599c04 H\n   branch2     cac536e I\n   master      cb54291 E\n\nSigned-off-by: Stephan Beyer <s-beyer@gmx.net>\n---\n  t/t3404-rebase-interactive.sh |    4 +++-\n  1 files changed, 3 insertions(+), 1 deletions(-)\n\ndiff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh\nindex b9e3dbd..623d784 100755\n--- a/t/t3404-rebase-interactive.sh\n+++ b/t/t3404-rebase-interactive.sh\n@@ -96,7 +96,9 @@ chmod a+x fake-editor.sh\n\n  test_expect_success 'no changes are a nop' '\n  \tgit rebase -i F &&\n-\ttest $(git rev-parse I) = $(git rev-parse HEAD)\n+\ttest $(git rev-parse I) = $(git rev-parse HEAD) &&\n+\ttest $(git rev-parse I) = $(git rev-parse branch2) &&\n+\tgit symbolic-ref HEAD\n  '\n\n  test_expect_success 'test the [branch] option' '\n-- \n1.5.5.1\n"}]}