Skip to content

Commit 686e4a4

Browse files
committed
review
1 parent 8642bd1 commit 686e4a4

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

pkg/commands/internal/builder.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,6 @@ func filterGitEnviron(envs []string) []string {
306306
"GIT_ALLOW_PROTOCOL",
307307
"GIT_ASKPASS":
308308
filtered = append(filtered, env)
309-
default:
310-
continue
311309
}
312310
}
313311

pkg/commands/internal/builder_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package internal
22

33
import (
4-
"slices"
54
"testing"
65

76
"github.com/stretchr/testify/assert"
@@ -84,8 +83,6 @@ func Test_filterGitEnviron(t *testing.T) {
8483

8584
envs := filterGitEnviron(environ)
8685

87-
slices.Sort(envs)
88-
8986
expected := []string{
9087
"GIT_ALLOW_PROTOCOL=https:git:ssh",
9188
"GIT_ASKPASS=/usr/bin/ssh-askpass",
@@ -96,8 +93,8 @@ func Test_filterGitEnviron(t *testing.T) {
9693
"GIT_CONFIG_VALUE_1=bot@example.com",
9794
"GIT_EXEC_PATH=/usr/lib/git-core",
9895
"GIT_HTTP_PROXY_AUTHMETHOD=basic",
99-
"GIT_SSH=/usr/bin/ssh",
10096
"GIT_SSH_COMMAND=ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no",
97+
"GIT_SSH=/usr/bin/ssh",
10198
"GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt",
10299
"GIT_SSL_NO_VERIFY=true",
103100
}

0 commit comments

Comments
 (0)