Merge branch 'jc/upload-pack-send-symref' into maint
[gitweb.git] / t / t5601-clone.sh
index b3b11e61c03e5d6d3e49a6f2d4a2281f05a7a600..f8e5a9a4ae1051216e4ef55c8a46c99686e45b5c 100755 (executable)
@@ -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