{"thread":{"id":"17190","subject":"[PATCH] t3501: check that commits are actually done","startedAt":"2009-01-15T13:03:17Z","lastAt":"2009-01-15T13:03:17Z","messageCount":1,"participants":["Stephan Beyer"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"100569","messageId":"1232024597-16728-1-git-send-email-s-beyer@gmx.net","threadId":"17190","inReplyTo":null,"subject":"[PATCH] t3501: check that commits are actually done","fromName":"Stephan Beyer","fromEmail":"s-beyer@gmx.net","sentAt":"2009-01-15T13:03:17Z","receivedAt":"2009-01-15T13:03:17Z","isPatch":true,"sender":{"key":"s-beyer@gmx.net","avatar":"https://avatars.githubusercontent.com/u/143889?v=4"},"body":"The basic idea of t3501 is to check whether revert\nand cherry-pick works on renamed files.\nBut as there is no pure cherry-pick/revert test, it is\ngood to also check if commits are actually done in that\nscenario.\n\nSigned-off-by: Stephan Beyer <s-beyer@gmx.net>\n---\n\n\tThis patch was originally motivated because of a bug that\n\tI introduced in my repo while hacking on cherry-pick/revert.\n\tNone of the cherry-pick test cases failed, so I thought\n\tthis tiny addition is useful.\n\n t/t3501-revert-cherry-pick.sh |    2 ++\n 1 files changed, 2 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t3501-revert-cherry-pick.sh b/t/t3501-revert-cherry-pick.sh\nindex 6da2128..bb4cf00 100755\n--- a/t/t3501-revert-cherry-pick.sh\n+++ b/t/t3501-revert-cherry-pick.sh\n@@ -45,6 +45,7 @@ test_expect_success 'cherry-pick after renaming branch' '\n \n \tgit checkout rename2 &&\n \tgit cherry-pick added &&\n+\ttest $(git rev-parse HEAD^) = $(git rev-parse rename2) &&\n \ttest -f opos &&\n \tgrep \"Add extra line at the end\" opos\n \n@@ -54,6 +55,7 @@ test_expect_success 'revert after renaming branch' '\n \n \tgit checkout rename1 &&\n \tgit revert added &&\n+\ttest $(git rev-parse HEAD^) = $(git rev-parse rename1) &&\n \ttest -f spoo &&\n \t! grep \"Add extra line at the end\" spoo\n \n-- \n1.6.1.160.gecdb\n"}]}