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 21, 2026 at 16:29 UTC d744d9d7c7e8fe410edeb4a33ca5481d598a9456
2 files changed +6 -6
Documentation/git-http-fetch.adoc
+4 -4
@@ -50,11 +50,11 @@ 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. An argument to the command run on the contents
57 + of the downloaded pack. This option can be specified multiple times.
58
59 --recover::
60 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);