Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/midx.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2021-09-09 22:56:58 +0300
committerJunio C Hamano <gitster@pobox.com>2021-09-10 03:32:37 +0300
commitbfbb60d328426f0fcc708e2da13d0063ba63e9db (patch)
treede76358914bb008a984d302325b69479797d1121 /midx.c
parent2d595973330765aca43bd4809c55ac0e66e7236f (diff)
pack-bitmap: drop repository argument from prepare_midx_bitmap_git()
We never look at the repository argument which is passed. This makes sense, since the multi_pack_index struct already tells us everything we need to access the files in its associated object directory. Signed-off-by: Jeff King <peff@peff.net> Reviewed-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'midx.c')
-rw-r--r--midx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/midx.c b/midx.c
index ccdc3e5702..864034a6ad 100644
--- a/midx.c
+++ b/midx.c
@@ -1144,7 +1144,7 @@ static int write_midx_internal(const char *object_dir,
int bitmap_exists;
int want_bitmap = flags & MIDX_WRITE_BITMAP;
- bitmap_git = prepare_midx_bitmap_git(the_repository, ctx.m);
+ bitmap_git = prepare_midx_bitmap_git(ctx.m);
bitmap_exists = bitmap_git && bitmap_is_midx(bitmap_git);
free_bitmap_index(bitmap_git);