diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-01-26 01:19:17 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-26 01:19:17 +0300 |
commit | 58e2ce9112446935a1294d095a07390ed665a6bc (patch) | |
tree | 9ea2ea6bae6a513e3e3ac9925e2149fd501be379 /midx.c | |
parent | 2856089e367cc126f70d0a3d6d6ff5290d204f2e (diff) | |
parent | 6a8c89d053059b97adb846fce1d22f6d7704c56a (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |