func()

in internal/zoekt/zoekt.go [114:132]


func (c *Client) GetCurrentSHA() (string, bool, error) {
	existingRepository, ok, err := c.findRepositoryMetadata()

	if err != nil {
		return "", ok, err
	}

	if !ok {
		return "", ok, nil
	}

	for _, branch := range existingRepository.Branches {
		if branch.Name == "HEAD" {
			return branch.Version, true, nil
		}
	}

	return "", true, nil
}