blame.c
13.5 KB
-
blame: handle error when resoling HEAD in normalize_options · e850e98d
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`.
Patrick Steinhardt committed