Please free the `git_buf` before exiting this function.