Documentation ¶
Overview ¶
Package repository contains logic for cloning remote repositories
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneAndSwitchToCommit ¶
CloneAndSwitchToCommit clones repository on given path and switches to given commit SHA
func CloneUsingBranchOrTag ¶
func CloneUsingBranchOrTag(ctx context.Context, org, repositoryName, path, branchOrTag string) error
CloneUsingBranchOrTag clones repository on given path in given branch or tag
func CreateTempDir ¶
CreateTempDir creates temp dir and returns cleanup function that cleans up the dir
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.