Re: [PATCHv6] clone --single: limit the fetch refspec to fetched branch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 18, 2012, 19:45 UTC
- Message-ID
- <7vfw6fm7xb.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1347995660-9956-1-git-send-email-ralf.thielow@gmail.com>
Ralf Thielow <ralf.thielow@gmail.com> writes:
Show 11 quoted lines
> + ... > + # explicit --single with tag > + git clone --single-branch --branch two . dir_tag && > + > + # advance both "master" and "side" branches > + git checkout side && > + echo five >file && > + git commit -a -m five && > + git checkout master && > + echo six >file && > + git commit -a -m six
Don't we also want to cover your "delivery" tag scenario by updating the tag "two" before letting the clones fetch in the following test?
Show 9 quoted lines
> + ... > +test_expect_success '--single-branch with explicit --branch tag' ' > + ( > + cd dir_tag && git fetch && > + git for-each-ref refs/tags >../actual > + ) && > + git for-each-ref refs/tags >expect && > + test_cmp expect actual > +'