Skip to content

Commit b2ebeed

Browse files
ttaylorrgitster
authored andcommitted
builtin/repack.c: pass 'packdir' to pack_geometry_remove_redundant()
For similar reasons as the preceding commit, pass the "packdir" variable directly to `pack_geometry_remove_redundant()` as a parameter to the function. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 2a15a73 commit b2ebeed

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

builtin/repack.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ static struct packed_git *pack_geometry_preferred_pack(struct pack_geometry *geo
307307

308308
static void pack_geometry_remove_redundant(struct pack_geometry *geometry,
309309
struct string_list *names,
310-
struct existing_packs *existing)
310+
struct existing_packs *existing,
311+
const char *packdir)
311312
{
312313
const struct git_hash_algo *algop = existing->repo->hash_algo;
313314
struct strbuf buf = STRBUF_INIT;
@@ -1327,7 +1328,7 @@ int cmd_repack(int argc,
13271328

13281329
if (geometry.split_factor)
13291330
pack_geometry_remove_redundant(&geometry, &names,
1330-
&existing);
1331+
&existing, packdir);
13311332
if (show_progress)
13321333
opts |= PRUNE_PACKED_VERBOSE;
13331334
prune_packed_objects(opts);

0 commit comments

Comments
 (0)