mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
packbuilder: use the packfile name instead of hash
Deprecate the `git_packfile_hash` function. Callers should use the new `git_packfile_name` function which provides a unique packfile name.
This commit is contained in:
@@ -101,13 +101,13 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
if (git_indexer_commit(indexer, &stats) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (git_str_printf(&path, "pack-%s.idx", git_oid_tostr_s(git_indexer_hash(indexer))) < 0)
|
||||
if (git_str_printf(&path, "pack-%s.idx", git_indexer_name(indexer)) < 0)
|
||||
goto cleanup;
|
||||
p_unlink(git_str_cstr(&path));
|
||||
|
||||
git_str_clear(&path);
|
||||
|
||||
if (git_str_printf(&path, "pack-%s.pack", git_oid_tostr_s(git_indexer_hash(indexer))) < 0)
|
||||
if (git_str_printf(&path, "pack-%s.pack", git_indexer_name(indexer)) < 0)
|
||||
goto cleanup;
|
||||
p_unlink(git_str_cstr(&path));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user