Skip to content

Commit d737eaa

Browse files
zeripathgernotegerlunny
authored
Set the base url when migrating from Gitlab using access token or username without password (#11852) (#12104)
Backport #11852 When migrating from gitlab, set the baseUrl in NewGitlabDownloader when using an access token or username without password Fix #11851 Co-authored-by: Gernot Eger <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
1 parent 058ee52 commit d737eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/migrations/gitlab.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func NewGitlabDownloader(baseURL, repoPath, username, password string) *GitlabDo
9090
var err error
9191
if username != "" {
9292
if password == "" {
93-
gitlabClient, err = gitlab.NewClient(username)
93+
gitlabClient, err = gitlab.NewClient(username, gitlab.WithBaseURL(baseURL))
9494
} else {
9595
gitlabClient, err = gitlab.NewBasicAuthClient(username, password, gitlab.WithBaseURL(baseURL))
9696
}

0 commit comments

Comments
 (0)