Ah, `git_path_root` mentions that -1 isn't an error condition for it. I'll change it to return error on buffer OOM.