We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7237770 commit 72c30a0Copy full SHA for 72c30a0
gitlab/projects.go
@@ -25,9 +25,6 @@ func (e *NotFound) Error() string {
25
func (srv *Projects) ByPath(path string) (proj *gogitlab.Project, err error) {
26
path = strings.TrimPrefix(strings.TrimSuffix(path, ".git"), "/")
27
p := strings.Split(path, "/")
28
- if len(p) != 2 {
29
- return nil, fmt.Errorf("incorrect path: %v", path)
30
- }
31
findProject := func(p *gogitlab.Project) bool {
32
if p.PathWithNamespace == path {
33
proj = p
0 commit comments