]> git.ipfire.org Git - thirdparty/git.git/blobdiff - midx.c
docs/rev-list: add an examples section
[thirdparty/git.git] / midx.c
diff --git a/midx.c b/midx.c
index 79c282b070d26d5ffac866feaaee244fea986d43..05c40a98e053905dc8b5e4587626e68acda6c62e 100644 (file)
--- a/midx.c
+++ b/midx.c
@@ -5,7 +5,7 @@
 #include "lockfile.h"
 #include "packfile.h"
 #include "object-store.h"
-#include "sha1-lookup.h"
+#include "hash-lookup.h"
 #include "midx.h"
 #include "progress.h"
 #include "trace2.h"
@@ -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)