code: func formatRefName(ref *git.Ref, remote string) string {
  	if ref.Type == git.RefTypeRemoteBranch {
  		return strings.Join([]string{
  			"refs", "remotes", remote, ref.Name}, "/")
  	}
  	return ref.Refspec()
  
  }
docs: // formatRefName returns the fully-qualified name for the given Git reference
  // "ref".