Merge branch 'nd/lift-path-max'
[gitweb.git] / t / t5601-clone.sh
index 8f3cd44d514f3996b62da28f6f83be7b1d786f01..1d1c8755ead4e432744a82f0d7b8ed7dfc8a6510 100755 (executable)
@@ -329,4 +329,15 @@ test_expect_success 'bracketed hostnames are still ssh' '
        expect_ssh myhost:123 src
 '
 
+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