mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
declare Buffer instead of using NewBuffer
Co-Authored-By: David Genest <david.genest@gmail.com>
This commit is contained in:
parent
f4b09c811e
commit
a44fae09a0
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ func gzipUntar(dst string, r io.Reader, subDir string) error {
|
|||
}
|
||||
|
||||
func remoteResolveRef(ctx context.Context, remote string, ref string) (string, error) {
|
||||
b := bytes.NewBuffer(nil)
|
||||
b := &bytes.Buffer{}
|
||||
cmd := exec.CommandContext(ctx, "git", "ls-remote", "--heads", "--tags", "--refs", "--quiet", remote, ref)
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stdout = b
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue