mirror of
https://github.com/go-gitea/gitea
synced 2025-07-14 22:47:21 +00:00
fix #735
This commit is contained in:
@ -811,6 +811,7 @@ func TransferOwnership(u *User, newOwner string, repo *Repository) error {
|
||||
|
||||
// ChangeRepositoryName changes all corresponding setting from old repository name to new one.
|
||||
func ChangeRepositoryName(userName, oldRepoName, newRepoName string) (err error) {
|
||||
newRepoName = strings.ToLower(newRepoName)
|
||||
if !IsLegalName(newRepoName) {
|
||||
return ErrRepoNameIllegal
|
||||
}
|
||||
|
Reference in New Issue
Block a user