Versions in this module Expand all Collapse all v1 v1.0.0 Jul 28, 2026 Changes in this version + var ErrNoRepo = errors.New("unable to find git repo") + var ErrShortRef = errors.New("short SHA references are not supported") + func AcquireCloneLock(dir string) func() + func CloneIfRequired(ctx context.Context, refName plumbing.ReferenceName, ...) (*git.Repository, bool, error) + func FindGitRef(ctx context.Context, file string) (string, error) + func FindGitRevision(ctx context.Context, file string) (shortSha, sha string, err error) + func FindGithubRepo(ctx context.Context, file, githubInstance, remoteName string) (string, error) + func NewGitCloneExecutor(input NewGitCloneExecutorInput) common.Executor + type Error struct + func (e *Error) Commit() string + func (e *Error) Error() string + func (e *Error) Unwrap() error + type NewGitCloneExecutorInput struct + Dir string + InsecureSkipTLS bool + OfflineMode bool + Ref string + Token string + URL string