Skip to content

Commit 530594c

Browse files
committed
odb: clear backend errors on successful read
We go through the different backends in order, so it's not an error if at least one of the backends has the data we want.
1 parent 9331f98 commit 530594c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/odb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ int git_odb_read(git_odb_object **out, git_odb *db, const git_oid *id)
783783
return error;
784784
}
785785

786+
giterr_clear();
786787
if ((object = odb_object__alloc(id, &raw)) == NULL)
787788
return -1;
788789

0 commit comments

Comments
 (0)