aboutsummaryrefslogtreecommitdiff
path: root/midx-write.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-04-24 11:37:21 -0700
committerJunio C Hamano <gitster@pobox.com>2025-04-24 11:37:21 -0700
commitd61ff9c237b05f9cff0831d4bde546ed4a9c3c42 (patch)
tree4a787bfa36ba05fbcaefec1334b520a9f175935b /midx-write.c
parent4bbb303af69990ccd05fe3a2eb58a1ce036f8220 (diff)
parent68cd492a3e662c75dec364986c81e94716d4ac56 (diff)
downloadgit-d61ff9c237b05f9cff0831d4bde546ed4a9c3c42.tar.xz
Merge branch 'ps/object-file-cleanup' into ps/object-store-cleanup
* ps/object-file-cleanup: object-store: merge "object-store-ll.h" and "object-store.h" object-store: remove global array of cached objects object: split out functions relating to object store subsystem object-file: drop `index_blob_stream()` object-file: split up concerns of `HASH_*` flags object-file: split out functions relating to object store subsystem object-file: move `xmmap()` into "wrapper.c" object-file: move `git_open_cloexec()` to "compat/open.c" object-file: move `safe_create_leading_directories()` into "path.c" object-file: move `mkdir_in_gitdir()` into "path.c"
Diffstat (limited to 'midx-write.c')
-rw-r--r--midx-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/midx-write.c b/midx-write.c
index 48a4dc5e94..dd3b3070e5 100644
--- a/midx-write.c
+++ b/midx-write.c
@@ -1098,7 +1098,7 @@ static int write_midx_internal(struct repository *r, const char *object_dir,
object_dir);
else
get_midx_filename(r->hash_algo, &midx_name, object_dir);
- if (safe_create_leading_directories(midx_name.buf))
+ if (safe_create_leading_directories(r, midx_name.buf))
die_errno(_("unable to create leading directories of %s"),
midx_name.buf);