{"thread":{"id":"11834","subject":"[PATCH] Test :/string form for checkout","startedAt":"2008-02-02T09:37:01Z","lastAt":"2008-02-02T09:37:01Z","messageCount":1,"participants":["Daniel Barkalow"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"67096","messageId":"alpine.LNX.1.00.0802020435560.13593@iabervon.org","threadId":"11834","inReplyTo":null,"subject":"[PATCH] Test :/string form for checkout","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2008-02-02T09:37:01Z","receivedAt":"2008-02-02T09:37:01Z","isPatch":true,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>\n---\nHere it is as a case in the test suite.\n\n t/t7201-co.sh |   16 ++++++++++++++++\n 1 files changed, 16 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t7201-co.sh b/t/t7201-co.sh\nindex 73d8a00..dbf1ace 100755\n--- a/t/t7201-co.sh\n+++ b/t/t7201-co.sh\n@@ -214,6 +214,22 @@ test_expect_success 'checkout to detach HEAD with branchname^' '\n \tfi\n '\n \n+test_expect_success 'checkout to detach HEAD with :/message' '\n+\n+\tgit checkout -f master && git clean -f &&\n+\tgit checkout \":/Initial\" &&\n+\tH=$(git rev-parse --verify HEAD) &&\n+\tM=$(git show-ref -s --verify refs/heads/master) &&\n+\ttest \"z$H\" = \"z$M\" &&\n+\tif git symbolic-ref HEAD >/dev/null 2>&1\n+\tthen\n+\t\techo \"OOPS, HEAD is still symbolic???\"\n+\t\tfalse\n+\telse\n+\t\t: happy\n+\tfi\n+'\n+\n test_expect_success 'checkout to detach HEAD with HEAD^0' '\n \n \tgit checkout -f master && git clean -f &&\n-- \n1.5.4\n"}]}