summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2016-03-09 11:00:27 +0100
committerVicent Marti <tanoku@gmail.com>2016-03-09 11:00:27 +0100
commit9a7866500545be7d06f1230c0c5109d669c4113a (patch)
tree3e9ab8009cc7dcddc8dd3e75ec1f1ea3230b5b39 /src/commit.c
parentc68044a8797d6eac5c8468dd5bec53d07b3ad66c (diff)
downloadlibgit2-9a7866500545be7d06f1230c0c5109d669c4113a.tar.gz
odb: Handle corner cases in `git_odb_expand_ids`
The old implementation had two issues: 1. OIDs that were too short as to be ambiguous were not being handled properly. 2. If the last OID to expand in the array was missing from the ODB, we would leak a `GIT_ENOTFOUND` error code from the function.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions