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

From: Jeff King <[email-masked]>
Date: Tue, 13 Jan 2026 21:20:57 -0500

On Tue, Jan 13, 2026 at 05:06:20PM -0800, Aaron Plattner wrote:

> > 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