Versions in this module Expand all Collapse all v0 v0.1.1 Apr 19, 2026 v0.1.0 Apr 19, 2026 Changes in this version + const CommitDelimiter + const PullRequestReference + const SubPathDelimiter + func CloneRepository(ctx context.Context, gitInfo *GitInfo, targetDir string, helper string, ...) error + func CloneRepositoryWithEnv(ctx context.Context, gitInfo *GitInfo, extraEnv []string, targetDir string, ...) error + func CommandContext(ctx context.Context, extraEnv []string, args ...string) *exec.Cmd + func GetBranchNameForPR(ref string) string + func GetDefaultExtraEnv(strictHostKeyChecking bool) []string + func GetIDForPR(ref string) string + func InstallBinary(log log.Logger) error + func NormalizeRepository(str string) (string, string, string, string, string) + func PingRepository(str string, extraEnv []string) bool + type CloneStrategy string + const BareCloneStrategy + const BloblessCloneStrategy + const FullCloneStrategy + const ShallowCloneStrategy + const TreelessCloneStrategy + func (s *CloneStrategy) Set(v string) error + func (s *CloneStrategy) String() string + func (s *CloneStrategy) Type() string + type Cloner interface + Clone func(ctx context.Context, repository string, targetDir string, ...) error + func NewCloner(strategy CloneStrategy) Cloner + func NewClonerWithOpts(options ...Option) Cloner + type GitInfo struct + Branch string + Commit string + PR string + Repository string + SubPath string + func NewGitInfo(repository, branch, commit, pr, subpath string) *GitInfo + func NormalizeRepositoryGitInfo(str string) *GitInfo + type Option func(*cloner) + func WithCloneStrategy(strategy CloneStrategy) Option + func WithRecursiveSubmodules() Option + func WithSkipLFS() Option