]> git.ipfire.org Git - thirdparty/git.git/blobdiff - pack-write.c
csum-file: rename hashclose() to finalize_hashfile()
[thirdparty/git.git] / pack-write.c
index d775c7406dd5a869a1ce4d28f6ef872e08476b77..044f427392a7f65520a47c6b80ada5ff0b38326c 100644 (file)
@@ -170,8 +170,8 @@ const char *write_idx_file(const char *index_name, struct pack_idx_entry **objec
        }
 
        hashwrite(f, sha1, the_hash_algo->rawsz);
-       hashclose(f, NULL, ((opts->flags & WRITE_IDX_VERIFY)
-                           ? CSUM_CLOSE : CSUM_FSYNC));
+       finalize_hashfile(f, NULL, ((opts->flags & WRITE_IDX_VERIFY)
+                                   ? CSUM_CLOSE : CSUM_FSYNC));
        return index_name;
 }