mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 05:38:41 +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 */
|
/* Add the commit and its tree */
|
||||||
if ((error = git_packbuilder_insert(pack, &oid, NULL)) < 0 ||
|
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;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user