diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-05-23 05:53:41 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-05-23 06:01:57 +0200 |
commit | 530594c0aa04df31e3cef331f6dad8083f66f15d (patch) | |
tree | 0078fd11854a1a47b03fb2dfb45f44e3f1debb02 | |
parent | 9331f98acaffd377a8076ab111bed84ff89e8e72 (diff) | |
download | libgit2-530594c0aa04df31e3cef331f6dad8083f66f15d.tar.gz |
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.
-rw-r--r-- | src/odb.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -783,6 +783,7 @@ int git_odb_read(git_odb_object **out, git_odb *db, const git_oid *id) return error; } + giterr_clear(); if ((object = odb_object__alloc(id, &raw)) == NULL) return -1; |