mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 18:11:43 +00:00
indexer: set an error message on duplicate objects in pack
While this is not even close to a fix, we can at least set an error message so we know which error we are facing. Up to know we just returned an error without a message.
This commit is contained in:
parent
e5e2c11d5d
commit
a34692c419
@ -289,6 +289,7 @@ static int store_object(git_indexer *idx)
|
||||
k = kh_put(oid, idx->pack->idx_cache, &pentry->sha1, &error);
|
||||
if (!error) {
|
||||
git__free(pentry);
|
||||
giterr_set(GITERR_INDEXER, "cannot handle duplicate objects in pack");
|
||||
goto on_error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user