Skip to content

Commit

Permalink
hotfix gitlab sub repo listing (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
anbraten committed Jan 3, 2022
1 parent f7d1451 commit 7e6765c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/remote/gitlab/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (

func (g *Gitlab) convertGitlabRepo(_repo *gitlab.Project) (*model.Repo, error) {
parts := strings.Split(_repo.PathWithNamespace, "/")
// TODO: save repo id (support nested repos)
var owner = parts[0]
var name = parts[1]
// TODO(648) save repo id (support nested repos)
var owner = strings.Join(parts[:len(parts)-1], "/")
var name = parts[len(parts)-1]
repo := &model.Repo{
Owner: owner,
Name: name,
Expand Down

0 comments on commit 7e6765c

Please sign in to comment.