Signed-off-by: Junio C Hamano <gitster@xxxxxxxxx> --- t/t5601-clone.sh | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 78a3fa6..6d4665b 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -125,4 +125,15 @@ test_expect_success 'clone to destination with extra trailing /' ' ' +test_expect_success 'clone from a repository with two identical branches' ' + + ( + cd src && + git checkout -b another master + ) && + git clone src target-3 && + test "z$( cd target-3 && git symbolic-ref HEAD )" = zrefs/heads/another + +' + test_done -- 1.6.0.4.864.g0f47a -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html