Return the reference supporting the remote tracking branch, given a local branch reference.
Pointer where to store the retrieved reference.
Current underlying reference of the branch.
0 on success; GIT_ENOTFOUND when no remote tracking reference exists, otherwise an error code.