mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 19:51:31 +00:00
Fix error check
This commit is contained in:
parent
2ff1a0d0f0
commit
0f5520f73a
@ -313,7 +313,7 @@ static int local_download_pack(
|
||||
|
||||
/* Add the commit and its tree */
|
||||
if ((error = git_packbuilder_insert(pack, &oid, NULL)) < 0 ||
|
||||
(error = git_packbuilder_insert_tree(pack, tree_oid)))
|
||||
(error = git_packbuilder_insert_tree(pack, tree_oid)) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user