Re: [PATCH v3 04/35] upload-pack: convert to a builtin
From: Jonathan Nieder <hidden>
Date: 2018-03-12 22:44:03
Hi, Jeff King wrote:
On Thu, Feb 22, 2018 at 01:26:34PM -0800, Jonathan Nieder wrote:
quoted
Keep in mind that git upload-archive (a read-only command, just like git upload-pack) also already has the same issues.Yuck. I don't think we've ever made a historical promise about that. But then, I don't think the promise about upload-pack has ever really been documented, except in mailing list discussions.
Sorry to revive this old side-thread. Good news: for a dashed command like git-upload-archive, the pager selection code only runs for commands with RUN_SETUP or RUN_SETUP_GENTLY: if (use_pager == -1 && p->option & (RUN_SETUP | RUN_SETUP_GENTLY) && !(p->option & DELAY_PAGER_CONFIG)) use_pager = check_pager_config(p->cmd); None of upload-pack, receive-pack,git-serve, or upload-archive set those flags, so we (narrowly) escape trouble here. Later today I should be able to send a cleanup to make the behavior more obvious. Thanks again, Jonathan