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
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 23 minutes ago –
Tools for package owners.