Fix error check

This commit is contained in:
Ben Straub 2012-11-12 07:55:09 -08:00
parent 2ff1a0d0f0
commit 0f5520f73a

View File

@ -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;
} }
} }