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