summaryrefslogtreecommitdiffstats
path: root/prune-packed.c
diff options
context:
space:
mode:
Diffstat (limited to 'prune-packed.c')
-rw-r--r--prune-packed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prune-packed.c b/prune-packed.c
index 2bb99c29df..d1c65ab10e 100644
--- a/prune-packed.c
+++ b/prune-packed.c
@@ -24,7 +24,7 @@ static int prune_object(const struct object_id *oid, const char *path,
{
int *opts = data;
- if (!has_object_pack(oid))
+ if (!has_object_pack(the_repository, oid))
return 0;
if (*opts & PRUNE_PACKED_DRY_RUN)