mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
vendor: update buildkit to v0.15.0-rc1
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
17
vendor/github.com/moby/buildkit/util/gitutil/git_cli.go
generated
vendored
17
vendor/github.com/moby/buildkit/util/gitutil/git_cli.go
generated
vendored
@ -119,20 +119,13 @@ func NewGitCLI(opts ...Option) *GitCLI {
|
||||
// New returns a new git client with the same config as the current one, but
|
||||
// with the given options applied on top.
|
||||
func (cli *GitCLI) New(opts ...Option) *GitCLI {
|
||||
c := &GitCLI{
|
||||
git: cli.git,
|
||||
dir: cli.dir,
|
||||
workTree: cli.workTree,
|
||||
gitDir: cli.gitDir,
|
||||
args: append([]string{}, cli.args...),
|
||||
streams: cli.streams,
|
||||
sshAuthSock: cli.sshAuthSock,
|
||||
sshKnownHosts: cli.sshKnownHosts,
|
||||
}
|
||||
clone := *cli
|
||||
clone.args = append([]string{}, cli.args...)
|
||||
|
||||
for _, opt := range opts {
|
||||
opt(c)
|
||||
opt(&clone)
|
||||
}
|
||||
return c
|
||||
return &clone
|
||||
}
|
||||
|
||||
// Run executes a git command with the given args.
|
||||
|
Reference in New Issue
Block a user