From: Andreas Krey Date: Fri, 06 Sep 2013 15:57:53 GMT Subject: [PATCH 3/3] clone: test the new HEAD detection logic Message-ID: <20130906155753.GH12966@inner.h.apk.li> In-Reply-To: <20130906155204.GE12966@inner.h.apk.li> From: Junio C Hamano Signed-off-by: Junio C Hamano Signed-off-by: Andreas Krey --- t/t5601-clone.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 0629149..ccda6df 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 -- 1.8.3.1.485.g9704416.dirty