repository: avoid swallowing error codes in `create_head`
The error handling in `git_repository_create_head` completely swallows all error codes. While probably not too much of a problem, this also violates our usual coding style. Refactor the code to use a local `error` variable with the typical `goto out` statements.
Showing
Please
register
or
sign in
to comment