mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
vendor: github.com/moby/buildkit v0.21.0-rc1
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
This commit is contained in:
3
vendor/github.com/moby/buildkit/util/gitutil/git_cli.go
generated
vendored
3
vendor/github.com/moby/buildkit/util/gitutil/git_cli.go
generated
vendored
@ -6,6 +6,7 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
"os/exec"
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
@ -120,7 +121,7 @@ func NewGitCLI(opts ...Option) *GitCLI {
|
||||
// with the given options applied on top.
|
||||
func (cli *GitCLI) New(opts ...Option) *GitCLI {
|
||||
clone := *cli
|
||||
clone.args = append([]string{}, cli.args...)
|
||||
clone.args = slices.Clone(cli.args)
|
||||
|
||||
for _, opt := range opts {
|
||||
opt(&clone)
|
||||
|
Reference in New Issue
Block a user