summaryrefslogtreecommitdiff
path: root/midx.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-01-25 22:19:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-25 22:19:17 (GMT)
commit58e2ce9112446935a1294d095a07390ed665a6bc (patch)
tree9ea2ea6bae6a513e3e3ac9925e2149fd501be379 /midx.c
parent2856089e367cc126f70d0a3d6d6ff5290d204f2e (diff)
parent6a8c89d053059b97adb846fce1d22f6d7704c56a (diff)
downloadgit-58e2ce9112446935a1294d095a07390ed665a6bc.zip
git-58e2ce9112446935a1294d095a07390ed665a6bc.tar.gz
git-58e2ce9112446935a1294d095a07390ed665a6bc.tar.bz2
Merge branch 'ma/more-opaque-lock-file'
Code clean-up. * ma/more-opaque-lock-file: read-cache: try not to peek into `struct {lock_,temp}file` refs/files-backend: don't peek into `struct lock_file` midx: don't peek into `struct lock_file` commit-graph: don't peek into `struct lock_file` builtin/gc: don't peek into `struct lock_file`
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 f9d9b83..05c40a9 100644
--- a/midx.c
+++ b/midx.c
@@ -918,7 +918,7 @@ static int write_midx_internal(const char *object_dir, struct multi_pack_index *
(pack_name_concat_len % MIDX_CHUNK_ALIGNMENT);
hold_lock_file_for_update(&lk, midx_name, LOCK_DIE_ON_ERROR);
- f = hashfd(lk.tempfile->fd, lk.tempfile->filename.buf);
+ f = hashfd(get_lock_file_fd(&lk), get_lock_file_path(&lk));
FREE_AND_NULL(midx_name);
if (packs.m)