builtin/repack.c: provide pack locations to `generated_pack_install()`

Repeat what was done in the preceding commit for the `generated_pack_install()` function, which needs both "packdir" and "packtmp". (As an aside, it is somewhat unfortunate that the final three parameters to this function are all "const char *", making errors like passing "packdir" and "packtmp" in the wrong order easy. We could define a new structure here, but that may be too heavy-handed.) Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Taylor Blau committed Oct 15, 2025 at 18:28 UTC 7036d131ae514f1bc854670a9d26b31064fcd88d
1 file changed +4 -2
builtin/repack.c
+4 -2
@@ -185,7 +185,8 @@ static int generated_pack_has_ext(const struct generated_pack *pack,
185 }
186
187 static void generated_pack_install(struct generated_pack *pack,
188 - const char *name)
188 + const char *name,
189 + const char *packdir, const char *packtmp)
190 {
191 int ext;
192 for (ext = 0; ext < ARRAY_SIZE(exts); ext++) {
@@ -1468,7 +1469,8 @@ int cmd_repack(int argc,
1469 * Ok we have prepared all new packfiles.
1470 */
1471 for_each_string_list_item(item, &names)
1471 - generated_pack_install(item->util, item->string);
1472 + generated_pack_install(item->util, item->string, packdir,
1473 + packtmp);
1474 /* End of pack replacement. */
1475
1476 if (delete_redundant && pack_everything & ALL_INTO_ONE)