[PATCH 5/5] clone: test the new HEAD detection logic
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 30, 2008, 09:57 UTC
- Message-ID
- <1228039053-31099-1-git-send-email-gitster@pobox.com>
This demonstrates the new HEAD detection mechanism based on the symbolic-ref protocol extension.
Signed-off-by: Junio C Hamano <gitster@pobox.com> --- 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.850.g6bd829