Skip to content

Commit 7e02ec2

Browse files
committed
Merge branch 'jk/t6300-cleanup' into maint
A test that creates a confusing branch whose name is HEAD has been corrected not to do so. * jk/t6300-cleanup: t6300: avoid creating refs/heads/HEAD
2 parents d6bc22e + f0252ca commit 7e02ec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t6300-for-each-ref.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ test_expect_success 'do not dereference NULL upon %(HEAD) on unborn branch' '
558558
test_when_finished "git checkout master" &&
559559
git for-each-ref --format="%(HEAD) %(refname:short)" refs/heads/ >actual &&
560560
sed -e "s/^\* / /" actual >expect &&
561-
git checkout --orphan HEAD &&
561+
git checkout --orphan orphaned-branch &&
562562
git for-each-ref --format="%(HEAD) %(refname:short)" refs/heads/ >actual &&
563563
test_cmp expect actual
564564
'

0 commit comments

Comments
 (0)