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

Re: [PATCH 1/2] send-pack: complain about "expecting report" with --helper-status

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 18, 2021, 20:26 UTC
Message-ID
<xmqqsfwyuljl.fsf@gitster.g>
In-Reply-To
<YW3OcxqcOsY9AFQ8@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 15 quoted lines
> diff --git a/builtin/send-pack.c b/builtin/send-pack.c
> index 8932142312..69c432ef1a 100644
> --- a/builtin/send-pack.c
> +++ b/builtin/send-pack.c
> @@ -87,6 +87,10 @@ static void print_helper_status(struct ref *ref)
>  			break;
>  
>  		case REF_STATUS_EXPECTING_REPORT:
> +			res = "error";
> +			msg = "expecting report";
> +			break;
> +
>  		default:
>  			continue;
>  		}
That is obviously correct, minimum and surprisingly simple ;-)
Thanks.
Previous: Jeff KingNext: Jeff King
Message 3 of 5 in “handling REF_STATUS_EXPECTING_REPORT over http”
  1. 0/2 handling REF_STATUS_EXPECTING_REPORT over httpJeff King, Oct 18, 2021
  2. 1/2 send-pack: complain about "expecting report" with --helper-statusJeff King, Oct 18, 2021
  3. Junio C HamanoOct 18, 2021
  4. 2/2 transport-helper: recognize "expecting report" error from send-packJeff King, Oct 18, 2021
  5. brian m. carlsonOct 19, 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.