http-fetch: correct --index-pack-arg documentation

The --packfile mode accepts one --index-pack-arg=<arg> option per argument passed to index-pack, but its documentation and option dependency errors still refer to the plural --index-pack-args form. Correct the spelling and describe the repeatable per-argument form. Signed-off-by: Ted Nyman <tnyman@openai.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ted Nyman committed Jul 26, 2026 at 17:28 UTC c71ed75a8b1d59793e033407cf38b03ddc1d0179
2 files changed +7 -6
Documentation/git-http-fetch.adoc
+5 -4
@@ -50,11 +50,12 @@ commit-id::
50 URL and uses index-pack to generate corresponding .idx and .keep files.
51 The hash is used to determine the name of the temporary file and is
52 arbitrary. The output of index-pack is printed to stdout. Requires
53 - --index-pack-args.
53 + one or more --index-pack-arg options.
54
55 ---index-pack-args=<args>::
56 - For internal use only. The command to run on the contents of the
57 - downloaded pack. Arguments are URL-encoded separated by spaces.
55 +--index-pack-arg=<arg>::
56 + For internal use only. The first instance specifies the command run on
57 + the contents of the downloaded pack. Subsequent instances specify its
58 + arguments.
59
60 --recover::
61 Verify that everything reachable from target is fetched. Used after
http-fetch.c
+2 -2
@@ -155,7 +155,7 @@ int cmd_main(int argc, const char **argv)
155
156 if (packfile) {
157 if (!index_pack_args.nr)
158 - die(_("the option '%s' requires '%s'"), "--packfile", "--index-pack-args");
158 + die(_("the option '%s' requires '%s'"), "--packfile", "--index-pack-arg");
159
160 fetch_single_packfile(&packfile_hash, argv[arg],
161 index_pack_args.v);
@@ -164,7 +164,7 @@ int cmd_main(int argc, const char **argv)
164 }
165
166 if (index_pack_args.nr)
167 - die(_("the option '%s' requires '%s'"), "--index-pack-args", "--packfile");
167 + die(_("the option '%s' requires '%s'"), "--index-pack-arg", "--packfile");
168
169 if (commits_on_stdin) {
170 commits = walker_targets_stdin(&commit_id, &write_ref);