@@ -350,15 +350,15 @@ func TestValidGitTransport(t *testing.T) {
350350 "github.com/docker/docker" ,
351351 }
352352
353- for _ , url := range gitUrls {
354- if ! isGitTransport (url ) {
355- t .Fatalf ("%q should be detected as valid Git prefix" , url )
353+ for _ , u := range gitUrls {
354+ if ! isGitTransport (u ) {
355+ t .Fatalf ("%q should be detected as valid Git prefix" , u )
356356 }
357357 }
358358
359- for _ , url := range incompleteGitUrls {
360- if isGitTransport (url ) {
361- t .Fatalf ("%q should not be detected as valid Git prefix" , url )
359+ for _ , u := range incompleteGitUrls {
360+ if isGitTransport (u ) {
361+ t .Fatalf ("%q should not be detected as valid Git prefix" , u )
362362 }
363363 }
364364}
@@ -371,8 +371,8 @@ func TestGitInvalidRef(t *testing.T) {
371371 "git@g.com:a/b.git#with space" ,
372372 }
373373
374- for _ , url := range gitUrls {
375- _ , err := Clone (url )
374+ for _ , u := range gitUrls {
375+ _ , err := Clone (u )
376376 assert .Assert (t , err != nil )
377377 // On Windows, git has different case for the "invalid refspec" error,
378378 // so we can't use ErrorContains.
0 commit comments