git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Add warning when v0 protocol is used/downgraded

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 17, 2024, 01:19 UTC
Message-ID
<xmqqjziobc2w.fsf@gitster.g>
In-Reply-To
<Zm8EqOfc_v4KBVVK@google.com>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 6 quoted lines
> Specifying protocol version is meant to be backward compatible, and
> there are cases where the old protocol still needs to be used - for
> ...
> more so for protocol v2 for push, which doesn't exist yet - once it
> exists, it wouldn't be great if all pushes using existing servers
> produced an extra piece of noisy output. :)

I do not think it is a great idea to add this as a warning, as if something bad is happening, either.

I also agree that it is a legitimate debugging issue. When the user sees some symptom, after learning that the same symptom was reported to be associated with the use of v2 on the Internet somewhere, it is reasonable for the user to want to see what protocol is being used, in order to debug the configuration, especially when the user thinks they configured to use v0 (or vice versa)

So I am all for (1) adding to, if it is not already done, this kind of information to the GIT_TRACE* output, and (2) advertising and advocating GIT_TRACE* stuff as a useful debugging tool.

Thanks.
Previous: Jonathan NiederNext: Jeff King
Message 3 of 5 in “Add warning when v0 protocol is used/downgraded”
  1. Devste DevsteJun 16, 2024
  2. Jonathan NiederJun 16, 2024
  3. Junio C HamanoJun 17, 2024
  4. Jeff KingJun 18, 2024
  5. Devste DevsteJun 19, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.