package git
import "github.com/docker/docker/builder/remotecontext/git"
Index ¶
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 ¶
- Version
- v23.0.0-rc.3+incompatible
- Published
- Jan 20, 2023
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 9 minutes ago –
Tools for package owners.