summaryrefslogtreecommitdiff
path: root/t/t5601-clone.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-06 15:57:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-09-18 04:58:59 (GMT)
commit8b2772220927a67d75948dd8758a406979505623 (patch)
treeaea9008ecbd7e91e350fc58c2b1e621236df3b92 /t/t5601-clone.sh
parenta45b5f0552eec3c8800edae44e071cf1d647bf96 (diff)
downloadgit-8b2772220927a67d75948dd8758a406979505623.zip
git-8b2772220927a67d75948dd8758a406979505623.tar.gz
git-8b2772220927a67d75948dd8758a406979505623.tar.bz2
clone: test the new HEAD detection logic
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5601-clone.sh')
-rwxr-xr-xt/t5601-clone.sh11
1 files changed, 11 insertions, 0 deletions
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