File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11package internal
22
33import (
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 }
You can’t perform that action at this time.
0 commit comments