t6300: avoid creating refs/heads/HEAD
authorJeff King <peff@peff.net>
Mon, 27 Feb 2017 09:29:31 +0000 (04:29 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2017 19:33:44 +0000 (11:33 -0800)
commitf0252ca23c5c33765d189be4999254bf722a8b99
tree339c394c6ca5926f85d46f5366efbe240071f304
parent3b9e3c2cede15057af3ff8076c45ad5f33829436
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>
t/t6300-for-each-ref.sh