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

2012-09-19 Thread Junio C Hamano
Ralf Thielow writes: > diff --git a/t/t5709-clone-refspec.sh b/t/t5709-clone-refspec.sh > new file mode 100755 > index 000..69a0779 > --- /dev/null > +++ b/t/t5709-clone-refspec.sh > @@ -0,0 +1,155 @@ > +#!/bin/sh > + > +test_description='test refspec written by clone-command' > +. ./test-lib

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

2012-09-19 Thread Ralf Thielow
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 refspec to cover only the singly cloned