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

Re: [PATCH v2] remote-curl: Use auth for probe_rpc() requests too

From
Jeff King <peff@peff.net>
Date
Jan 14, 2026, 02:20 UTC
Message-ID
<20260114022057.GA858110@coredump.intra.peff.net>
In-Reply-To
<a919f4cf-8355-43dd-a552-df99325e4cc6@nvidia.com>
On Tue, Jan 13, 2026 at 05:06:20PM -0800, Aaron Plattner wrote:
Show 18 quoted lines
> > Hopefully, $(test_seq 2000) would not bust $(sysconf ARG_MAX), which
> > could be as low as 4KB, on any system we care about.  If not, of
> > course we could
> > 
> > 	test_seq 2000 |
> > 	xargs printf "create ...\n" |
> > 	git update-ref --stdin
> > 
> > which probably is not all that more expensive than what you wrote above.
> 
> That's a good call. I tried this
> 
> 	test_seq 2000 |
> 	xargs printf "create refs/heads/branch-%d @\n" |
> 	git update-ref --stdin
> 
> and verified it produces the same results, as does the same plus passing "-n
> 10" to xargs.
test_seq can take a format parameter these days, so just:
  test_seq -f "create refs/heads/branch-%d @" |
  git update-ref --stdin
is enough, and saves some processes.
-Peff
Previous: Aaron PlattnerNext: Junio C Hamano
Message 5 of 9 in “remote-curl: Use auth for probe_rpc() requests too”
  1. remote-curl: Use auth for probe_rpc() requests tooAaron Plattner, Jan 13, 2026
  2. Patrick SteinhardtJan 13, 2026
  3. Junio C HamanoJan 13, 2026
  4. Aaron PlattnerJan 14, 2026
  5. Jeff KingJan 14, 2026
  6. Junio C HamanoJan 14, 2026
  7. Aaron PlattnerJan 14, 2026
  8. Jeff KingJan 14, 2026
  9. Junio C HamanoJan 14, 2026

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.