Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶
func Clone(remoteURL string, opts ...CloneOption) (string, error)
Clone clones a repository into a newly created directory which will be under "docker-build-git"
Types ¶
type CloneOption ¶
type CloneOption func(*gitRepo)
CloneOption changes the behaviour of Clone().
func WithIsolatedConfig ¶
func WithIsolatedConfig(v bool) CloneOption
WithIsolatedConfig disables reading the user or system gitconfig files when performing Git operations.
Source Files
¶
- gitutils.go
Click to show internal directories.
Click to hide internal directories.