Skip to content

Commit 72c30a0

Browse files
committed
Allow specifying projects in subgroups
Fixes #10
1 parent 7237770 commit 72c30a0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

gitlab/projects.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ func (e *NotFound) Error() string {
2525
func (srv *Projects) ByPath(path string) (proj *gogitlab.Project, err error) {
2626
path = strings.TrimPrefix(strings.TrimSuffix(path, ".git"), "/")
2727
p := strings.Split(path, "/")
28-
if len(p) != 2 {
29-
return nil, fmt.Errorf("incorrect path: %v", path)
30-
}
3128
findProject := func(p *gogitlab.Project) bool {
3229
if p.PathWithNamespace == path {
3330
proj = p

0 commit comments

Comments
 (0)