From: Junio C Hamano Date: Fri, 6 Sep 2013 15:57:53 +0000 (+0200) Subject: clone: test the new HEAD detection logic X-Git-Tag: v1.8.4.3~3^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8b2772220927a67d75948dd8758a406979505623?ds=inline;hp=--cc clone: test the new HEAD detection logic Signed-off-by: Junio C Hamano --- 8b2772220927a67d75948dd8758a406979505623 diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 0629149edd..ccda6dfb4c 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -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