Skip to content

Commit 591cbf9

Browse files
committed
Fix build (#35669)
backport #35656
1 parent 602af14 commit 591cbf9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/git/url/url_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ func TestParseGitURLs(t *testing.T) {
3434
},
3535
},
3636
{
37-
kase: "git@[fe80:14fc:cec5:c174:d88%2510]:go-gitea/gitea.git",
37+
kase: "git@[fe80::14fc:cec5:c174:d88%2510]:go-gitea/gitea.git",
3838
expected: &GitURL{
3939
URL: &url.URL{
4040
Scheme: "ssh",
4141
User: url.User("git"),
42-
Host: "[fe80:14fc:cec5:c174:d88%10]",
42+
Host: "[fe80::14fc:cec5:c174:d88%10]",
4343
Path: "go-gitea/gitea.git",
4444
},
4545
extraMark: 1,
@@ -137,11 +137,11 @@ func TestParseGitURLs(t *testing.T) {
137137
},
138138
},
139139
{
140-
kase: "https://[fe80:14fc:cec5:c174:d88%2510]:20/go-gitea/gitea.git",
140+
kase: "https://[fe80::14fc:cec5:c174:d88%2510]:20/go-gitea/gitea.git",
141141
expected: &GitURL{
142142
URL: &url.URL{
143143
Scheme: "https",
144-
Host: "[fe80:14fc:cec5:c174:d88%10]:20",
144+
Host: "[fe80::14fc:cec5:c174:d88%10]:20",
145145
Path: "/go-gitea/gitea.git",
146146
},
147147
extraMark: 0,

0 commit comments

Comments
 (0)