mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 12:02:56 +02:00
fix repo url parsing (again)
This commit is contained in:
1 parent
cc334eff43
commit
1e2c2dc058
1 file changed
+2
-1
@@ -140,9 +140,10 @@ func ParseRepositoryURL(ctx context.Context, repoURL string) (*RepositoryURL, er
|
|||||||
if len(fields) >= 4 {
|
if len(fields) >= 4 {
|
||||||
ret.RemainingPath = "/" + fields[3]
|
ret.RemainingPath = "/" + fields[3]
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
ret.RepoName = strings.TrimSuffix(fields[1], ".git")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch parsed.URL.Scheme {
|
switch parsed.URL.Scheme {
|
||||||
|
|||||||
Reference in new issue
Block a user