Return the name of remote that the remote tracking branch belongs to.
Pointer to the user-allocated git_buf which will be filled iwth the name of the remote.
name of the remote tracking branch.
0, GIT_ENOTFOUND when no remote matching remote was found, GIT_EAMBIGUOUS when the branch maps to several remotes, otherwise an error code.