mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
Pass -n flag to git clone
There's an explicit git checkout command issued moments later, so there's no need to create a working copy during the clone.
This commit is contained in:
parent
4bea3f2e30
commit
c9a5b0a6b2
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ func NewGitPackage(source *spec.GitSource) Interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *GitPackage) Install(ctx context.Context, dir, version string) (lockVersion string, err error) {
|
func (p *GitPackage) Install(ctx context.Context, dir, version string) (lockVersion string, err error) {
|
||||||
cmd := exec.CommandContext(ctx, "git", "clone", p.Source.Remote, dir)
|
cmd := exec.CommandContext(ctx, "git", "clone", "-n", p.Source.Remote, dir)
|
||||||
cmd.Stdin = os.Stdin
|
cmd.Stdin = os.Stdin
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue