package git
import "github.com/dotcloud/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
- v20.10.22+incompatible
- Published
- Dec 15, 2022
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 50 seconds ago –
Tools for package owners.