This will return the currently configured "branch.*.remote" for a given
branch. This branch must be local.
@param buf the buffer into which to write the name
@param repo the repository in which to look
@param refname the full name of the branch
@return 0 or an error code
Retrieve the upstream remote of a local branch
This will return the currently configured "branch.*.remote" for a given branch. This branch must be local.
@param buf the buffer into which to write the name @param repo the repository in which to look @param refname the full name of the branch @return 0 or an error code