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
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 &&
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
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
4 matches
Mail list logo