Re: [PATCH v3 35/35] remote-curl: don't request v2 when pushing
- From
- Brandon Williams <bmwill@google.com>
- Date
- Feb 22, 2018, 19:09 UTC
- Message-ID
- <20180222190901.GL185096@google.com>
- In-Reply-To
- <20180222185948.GK185096@google.com>
On 02/22, Brandon Williams wrote:
Show 23 quoted lines
> On 02/21, Jonathan Tan wrote: > > On Tue, 6 Feb 2018 17:13:12 -0800 > > Brandon Williams <bmwill@google.com> wrote: > > > > > +test_expect_success 'push with http:// and a config of v2 does not request v2' ' > > > + # Till v2 for push is designed, make sure that if a client has > > > + # protocol.version configured to use v2, that the client instead falls > > > + # back and uses v0. > > > + > > > + test_commit -C http_child three && > > > + > > > + # Push to another branch, as the target repository has the > > > + # master branch checked out and we cannot push into it. > > > + GIT_TRACE_PACKET=1 git -C http_child -c protocol.version=1 \ > > > + push origin HEAD:client_branch && 2>log && > > > > Should it be protocol.version=2? Also, two double ampersands? > > > > Also, optionally, it might be better to do > > GIT_TRACE_PACKET="$(pwd)/log", so that it does not get mixed with other > > stderr output. > > Wow thanks for catching that, let me fix that.
I like setting the log via "$(pwd)/log" but it turns out that this appends to the file if it already exists, which means the previous tests need to do some cleanup. This is actually probably preferable anyway.
> > -- > Brandon Williams
-- Brandon Williams