We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d32b5c commit 3a271b1Copy full SHA for 3a271b1
lfsapi/creds.go
@@ -15,7 +15,7 @@ type CredentialHelper interface {
15
16
type Creds map[string]string
17
18
-func (c Creds) Buffer() *bytes.Buffer {
+func bufferCreds(c Creds) *bytes.Buffer {
19
buf := new(bytes.Buffer)
20
21
for k, v := range c {
@@ -49,7 +49,7 @@ func (h *commandCredentialHelper) Approve(creds Creds) error {
49
func (h *commandCredentialHelper) exec(subcommand string, input Creds) (Creds, error) {
50
output := new(bytes.Buffer)
51
cmd := exec.Command("git", "credential", subcommand)
52
- cmd.Stdin = input.Buffer()
+ cmd.Stdin = bufferCreds(input)
53
cmd.Stdout = output
54
/*
55
There is a reason we don't hook up stderr here:
0 commit comments