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
This commit is contained in:
@ -558,7 +558,7 @@ test_expect_success 'do not dereference NULL upon %(HEAD) on unborn branch' '
|
|||||||
test_when_finished "git checkout master" &&
|
test_when_finished "git checkout master" &&
|
||||||
git for-each-ref --format="%(HEAD) %(refname:short)" refs/heads/ >actual &&
|
git for-each-ref --format="%(HEAD) %(refname:short)" refs/heads/ >actual &&
|
||||||
sed -e "s/^\* / /" actual >expect &&
|
sed -e "s/^\* / /" actual >expect &&
|
||||||
git checkout --orphan HEAD &&
|
git checkout --orphan orphaned-branch &&
|
||||||
git for-each-ref --format="%(HEAD) %(refname:short)" refs/heads/ >actual &&
|
git for-each-ref --format="%(HEAD) %(refname:short)" refs/heads/ >actual &&
|
||||||
test_cmp expect actual
|
test_cmp expect actual
|
||||||
'
|
'
|
||||||
|
|||||||
Reference in New Issue
Block a user