Commit 2ade8fb0 by Patrick Steinhardt Committed by GitHub

Merge pull request #4264 from libgit2/ethomson/read_prefix

odb_read_prefix: reset error in backends loop
parents bd692809 cb3010c5
...@@ -1116,8 +1116,11 @@ static int read_prefix_1(git_odb_object **out, git_odb *db, ...@@ -1116,8 +1116,11 @@ static int read_prefix_1(git_odb_object **out, git_odb *db,
if (b->read_prefix != NULL) { if (b->read_prefix != NULL) {
git_oid full_oid; git_oid full_oid;
error = b->read_prefix(&full_oid, &raw.data, &raw.len, &raw.type, b, key, len); error = b->read_prefix(&full_oid, &raw.data, &raw.len, &raw.type, b, key, len);
if (error == GIT_ENOTFOUND || error == GIT_PASSTHROUGH)
if (error == GIT_ENOTFOUND || error == GIT_PASSTHROUGH) {
error = 0;
continue; continue;
}
if (error) if (error)
goto out; goto out;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment