🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.git
2 messages
2 total messages Started by Junio C Hamano Sat, 31 Oct 2026 03:12
Re: [PATCH] t5702: be more resilient to env quoting
#1978
Author: Junio C Hamano
Date: Sat, 31 Oct 2026 03:12
22 lines
13441 bytes
Jeff King <peff@peff.net> writes:

> The new coreutils hit Debian unstable, so I ran into this doing my usual
> daily "make test". I wondered what idiot did the overly-complicated
> "env" invocation in the first place, but naturally it turns out it was
> me.

Namely, in eaa0fd6584 (git_connect(): fix corner cases in
downgrading v2 to v0, 2023-03-17).  The log message starts by
discussing dropping a "push" that asks for v2 to v0 because we can
only do v2 for fetches, but the three tests added by the patch
verify that fetch, push, and archive invoked via a custom path do
not request v2.

I can see that the patch correctly checks the value of '$GIT_PROTOCOL'
in the environment when these custom commands are invoked.  I would
have to read the log message for the "head-scratching notes" in
eaa0fd6584 if I wanted to remind myself why the original code wanted
to downgrade a custom upload-pack to v0 in the first place.  Luckily,
I do not have to do that to be convinced that this particular patch
is correct.
Re: [PATCH] t5702: be more resilient to env quoting
#2080
Author: Junio C Hamano
Date: Sun, 01 Nov 2026 20:57
13 lines
12738 bytes
Jeff King <peff@peff.net> writes:

> I think you're misreading one of the tests. The one for fetch checks
> that we _do_ send version=2 in the $GIT_PROTOCOL field. The others
> confirm that we don't (the idea was to cover all of the possible
> operations).

You're right.

Queued.

Thanks.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads