diff options
author | Ben Straub <bs@github.com> | 2012-11-12 07:55:09 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-12 07:55:09 -0800 |
commit | 0f5520f73aeda936f67024411b9c1b34bb09d6ac (patch) | |
tree | ff98a37e3cd0d167c8cd179086b2c3b8f78f46d2 | |
parent | 2ff1a0d0f0eb7a214253fea3769c3fe64142446c (diff) | |
download | libgit2-0f5520f73aeda936f67024411b9c1b34bb09d6ac.tar.gz |
Fix error check
-rw-r--r-- | src/transports/local.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/local.c b/src/transports/local.c index 436ac435a..2e02bd970 100644 --- a/src/transports/local.c +++ b/src/transports/local.c @@ -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; } } |