diff options
author | Patrick Steinhardt <ps@pks.im> | 2016-03-10 16:42:55 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2016-03-11 14:20:15 +0100 |
commit | e850e98ddbcca9d51f412482e3bf16b2d5c36bc8 (patch) | |
tree | b9ee32b09c53aee8a467da71ddc5f52a3c88bec2 /tests/diff/diff_helpers.h | |
parent | 8a4a343a2b230acc69ba13131355f8299b4483d3 (diff) | |
download | libgit2-e850e98ddbcca9d51f412482e3bf16b2d5c36bc8.tar.gz |
blame: handle error when resoling HEAD in normalize_options
When normalizing options we try to look up HEAD's OID. While this
action may fail in malformed repositories we never check the
return value of the function.
Fix the issue by converting `normalize_options` to actually
return an error and handle the error in `git_blame_file`.
Diffstat (limited to 'tests/diff/diff_helpers.h')
0 files changed, 0 insertions, 0 deletions