Skip to content

Commit 942697e

Browse files
zmotsoMykolaMarusenko
authored andcommitted
fix: Use Path instead of Name for GitLab repository (#50)
GitLab repository name may contain spaces. This can lead to errors during repository import. Changed to the repository Path that can't contain spaces.
1 parent 2d23979 commit 942697e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/services/gitlab/gitlab.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func convertGitlabRepoToRepository(repo *gitlab.Project) *models.Repository {
210210
DefaultBranch: &repo.DefaultBranch,
211211
Description: &repo.Description,
212212
Id: strconv.Itoa(repo.ID),
213-
Name: repo.Name,
213+
Name: repo.Path,
214214
Owner: &repo.Namespace.FullPath,
215215
Url: &repo.WebURL,
216216
Visibility: convertVisibility(repo.Visibility == gitlab.PrivateVisibility),

0 commit comments

Comments
 (0)