Instead of calling `git_buf_joinpath()` and then return `git_buf_oom()`, you can just call `return git_buf_joinpath(...);` which will return the error code directly.