clone: test the new HEAD detection logic
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
a45b5f0552
commit
8b27722209
@ -285,4 +285,15 @@ test_expect_success NOT_MINGW,NOT_CYGWIN 'clone local path foo:bar' '
|
||||
git clone "./foo:bar" foobar
|
||||
'
|
||||
|
||||
test_expect_success 'clone from a repository with two identical branches' '
|
||||
|
||||
(
|
||||
cd src &&
|
||||
git checkout -b another master
|
||||
) &&
|
||||
git clone src target-11 &&
|
||||
test "z$( cd target-11 && git symbolic-ref HEAD )" = zrefs/heads/another
|
||||
|
||||
'
|
||||
|
||||
test_done
|
||||
|
Loading…
Reference in New Issue
Block a user