From: Junio C Hamano Date: Tue, 18 Sep 2012 19:45:36 GMT Subject: Re: [PATCHv6] clone --single: limit the fetch refspec to fetched branch Message-ID: <7vfw6fm7xb.fsf@alter.siamese.dyndns.org> In-Reply-To: <1347995660-9956-1-git-send-email-ralf.thielow@gmail.com> Ralf Thielow writes: > + ... > + # 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? > + ... > +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 > +'