mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
suppress detached head advice
This limits urelated output to the console when installing deps
This commit is contained in:
parent
7ad4e41347
commit
c914ece3df
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ func (p *GitPackage) Install(ctx context.Context, dir, version string) (lockVers
|
|||
return "", err
|
||||
}
|
||||
|
||||
cmd = exec.CommandContext(ctx, "git", "checkout", version)
|
||||
cmd = exec.CommandContext(ctx, "git", "-c", "advice.detachedHead=false", "checkout", version)
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue