mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-24 21:28:06 +00:00
Expect standard error code from internal calls
This commit is contained in:
parent
def60ea473
commit
ea57f66b57
@ -493,7 +493,7 @@ int git_smart__download_pack(
|
||||
git__free(pkt);
|
||||
} else if (pkt->type == GIT_PKT_DATA) {
|
||||
git_pkt_data *p = (git_pkt_data *) pkt;
|
||||
if ((error = writepack->add(writepack, p->data, p->len, stats)) != 0)
|
||||
if ((error = writepack->add(writepack, p->data, p->len, stats)) < 0)
|
||||
goto on_error;
|
||||
|
||||
git__free(pkt);
|
||||
|
Loading…
Reference in New Issue
Block a user