t6300: avoid creating refs/heads/HEAD

In one test, we use "git checkout --orphan HEAD" to create an unborn branch. Confusingly, the resulting branch is named "refs/heads/HEAD". The original probably meant something like: git checkout --orphan orphaned-branch HEAD Let's just use "orphaned-branch" here to make this less confusing. Putting HEAD in the second argument is already implied. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Feb 27, 2017 at 04:29 UTC f0252ca23c5c33765d189be4999254bf722a8b99
1 file changed +1 -1
t/t6300-for-each-ref.sh
+1 -1
@@ -558,7 +558,7 @@ test_expect_success 'do not dereference NULL upon %(HEAD) on unborn branch' '
558 test_when_finished "git checkout master" &&
559 git for-each-ref --format="%(HEAD) %(refname:short)" refs/heads/ >actual &&
560 sed -e "s/^\* / /" actual >expect &&
561 - git checkout --orphan HEAD &&
561 + git checkout --orphan orphaned-branch &&
562 git for-each-ref --format="%(HEAD) %(refname:short)" refs/heads/ >actual &&
563 test_cmp expect actual
564 '