clone: test the new HEAD detection logic
[gitweb.git] / t / t5601-clone.sh
index 67869b4813dd354f4376ead1470ecb0e58929302..ccda6dfb4c6931552c4a4baed41fc9ab40bb72c8 100755 (executable)
@@ -280,4 +280,20 @@ test_expect_success 'clone checking out a tag' '
        test_cmp fetch.expected fetch.actual
 '
 
+test_expect_success NOT_MINGW,NOT_CYGWIN 'clone local path foo:bar' '
+       cp -R src "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