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

gitutils.go

Version
v23.0.16+incompatible
Published
Oct 12, 2024
Platform
js/wasm
Imports
8 packages
Last checked
15 minutes ago

Tools for package owners.