code: func ResolveReference(s ReferenceStorer, n plumbing.ReferenceName) (*plumbing.Reference, error) {
  	r, err := s.Reference(n)
  	if err != nil || r == nil {
  		return r, err
  	}
  	return resolveReference(s, r, 0)
  }
docs: // ResolveReference resolves a SymbolicReference to a HashReference.