Re: [PATCH v3 4/4] fetch-pack: support protocol version 2
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 8, 2019, 19:45 UTC
- Message-ID
- <xmqqva2z3pdp.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20181217224054.4376-5-avarab@gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> From: Jonathan Tan <jonathantanmy@google.com>
I was looking at the topics in 'pu' and noticed that I had v2 of this series, wanted to update to v3, but major part of it was superseded by another topic (jk/proto-v2-hidden-refs-fix). That leaves only this patch in the v3 of this series.
Is this one still relevant?
Show 35 quoted lines
> diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh > index 086f2c40f68..49c540b1e1d 100755 > --- a/t/t5500-fetch-pack.sh > +++ b/t/t5500-fetch-pack.sh > @@ -439,15 +439,23 @@ test_expect_success 'setup tests for the --stdin parameter' ' > ) >input.dup > ' > > -test_expect_success 'fetch refs from cmdline' ' > - ( > - cd client && > - git fetch-pack --no-progress .. $(cat ../input) > - ) >output && > - cut -d " " -f 2 <output | sort >actual && > - test_cmp expect actual > +test_expect_success 'setup fetch refs from cmdline v[12]' ' > + cp -r client client1 && > + cp -r client client2 > ' > > +for version in '' 1 2 > +do > + test_expect_success "protocol.version=$version fetch refs from cmdline" " > + ( > + cd client$version && > + GIT_TEST_PROTOCOL_VERSION=$version git fetch-pack --no-progress .. \$(cat ../input) > + ) >output && > + cut -d ' ' -f 2 <output | sort >actual && > + test_cmp expect actual > + " > +done > + > test_expect_success 'fetch refs from stdin' ' > ( > cd client &&