]> git.ipfire.org Git - thirdparty/git.git/blobdiff - bulk-checkin.c
csum-file: rename hashclose() to finalize_hashfile()
[thirdparty/git.git] / bulk-checkin.c
index 8bcd1c8665d02840d7d77bc677b293595f9e0a31..e8094f5f61052abf177abfecf3a56181a7ef74df 100644 (file)
@@ -35,9 +35,9 @@ static void finish_bulk_checkin(struct bulk_checkin_state *state)
                unlink(state->pack_tmp_name);
                goto clear_exit;
        } else if (state->nr_written == 1) {
-               hashclose(state->f, oid.hash, CSUM_FSYNC);
+               finalize_hashfile(state->f, oid.hash, CSUM_FSYNC);
        } else {
-               int fd = hashclose(state->f, oid.hash, 0);
+               int fd = finalize_hashfile(state->f, oid.hash, 0);
                fixup_pack_header_footer(fd, oid.hash, state->pack_tmp_name,
                                         state->nr_written, oid.hash,
                                         state->offset);