Skip to content

Commit 072e8c2

Browse files
committed
Migration will clone repository from the proxy
1 parent 6bf5afe commit 072e8c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/migrations/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func NewGithubDownloaderV3(ctx context.Context, baseURL, userName, password, tok
9090
Transport: &http.Transport{
9191
Proxy: func(req *http.Request) (*url.URL, error) {
9292
req.SetBasicAuth(userName, password)
93-
return nil, nil
93+
return http.ProxyFromEnvironment(req)
9494
},
9595
},
9696
}

modules/migrations/gogs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func NewGogsDownloader(ctx context.Context, baseURL, userName, password, token,
9797
downloader.transport = &http.Transport{
9898
Proxy: func(req *http.Request) (*url.URL, error) {
9999
req.SetBasicAuth(userName, password)
100-
return nil, nil
100+
return http.ProxyFromEnvironment(req)
101101
},
102102
}
103103

0 commit comments

Comments
 (0)