Re: [PATCHv6] clone --single: limit the fetch refspec to fetched branch

2012-09-19 Thread Ralf Thielow
On Wed, Sep 19, 2012 at 9:36 AM, Nguyen Thai Ngoc Duy wrote: > On Wed, Sep 19, 2012 at 2:14 AM, Ralf Thielow wrote: >> +test_expect_success '--single-branch with explicit --branch tag' ' >> + ( >> + cd dir_tag && git fetch && >> + git for-each-ref refs/tags >../a

Re: [PATCHv6] clone --single: limit the fetch refspec to fetched branch

2012-09-19 Thread Nguyen Thai Ngoc Duy
On Wed, Sep 19, 2012 at 2:14 AM, Ralf Thielow wrote: > +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 &&

Re: [PATCHv6] clone --single: limit the fetch refspec to fetched branch

2012-09-18 Thread Junio C Hamano
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 maste

Re: [PATCHv6] clone --single: limit the fetch refspec to fetched branch

2012-09-18 Thread Junio C Hamano
Ralf Thielow writes: > After running "git clone --single", the resulting repository has the > usual default "+refs/heads/*:refs/remotes/origin/*" wildcard fetch > refspec installed, which means that a subsequent "git fetch" will > end up grabbing all the other branches. > > Update the fetch refsp