suppress detached head advice

This limits urelated output to the console when installing deps
This commit is contained in:
davidovich 2019-07-23 12:43:21 -04:00
parent 7ad4e41347
commit c914ece3df

View file

@ -45,7 +45,7 @@ func (p *GitPackage) Install(ctx context.Context, dir, version string) (lockVers
return "", err 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.Stdin = os.Stdin
cmd.Stdout = os.Stdout cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr cmd.Stderr = os.Stderr