File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments