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

Re: [PATCH] transport: no warning if no server wait-for-done

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 9, 2021, 19:11 UTC
Message-ID
<YRF91qCi+c7csUxM@google.com>
In-Reply-To
<xmqqh7fyfrtl.fsf@gitster.g>
Hi,
Junio C Hamano wrote:
> Jonathan Tan <jonathantanmy@google.com> writes:
Show 11 quoted lines
>> -	if (finish_command(&child)) {
>> -		/*
>> -		 * The information that push negotiation provides is useful but
>> -		 * not mandatory.
>> -		 */
>> -		warning(_("push negotiation failed; proceeding anyway with push"));
>> -	}
>
> Perhaps like "optional ancestry negotiation failed---pushing
> normally" or some phrasing that assures the users that pushing
> without negotiation is perfectly normal?
The question is what the user will do with this information.

Will they contact the service provider to ask them to turn on push negotiation?

Will they turn off push negotiation because they don't want to waste a round trip?

Does what they will do depend on _why_ push negotiation failed? If it failed because the server didn't declare the capability and the user has set push.negotate to true to represent "I want to live in the future by using push negotiation wherever it's available", then the message is noise. If it failed due to a bug, then the message is more relevant to the user --- e.g., should we use a different exit status to distinguish between these two cases?

Thanks, Jonathan

Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 7 in “transport: no warning if no server wait-for-done”
  1. transport: no warning if no server wait-for-doneJonathan Tan, Aug 6, 2021
  2. Ævar Arnfjörð BjarmasonAug 7, 2021
  3. Jonathan TanAug 16, 2021
  4. Junio C HamanoAug 9, 2021
  5. Jonathan NiederAug 9, 2021
  6. Junio C HamanoAug 9, 2021
  7. Jonathan TanAug 16, 2021

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.