diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-12-12 01:29:36 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-12-12 01:29:36 -0500 |
commit | 2f3a7e53cb58e922055baf3cf14138100a1f05ac (patch) | |
tree | 847a3474584d616a16013aa0edf13de7118be91d /models | |
parent | 42c7bb75295ae7587b7ca36f103a7dc25f87754a (diff) | |
download | gitea-2f3a7e53cb58e922055baf3cf14138100a1f05ac.tar.gz gitea-2f3a7e53cb58e922055baf3cf14138100a1f05ac.zip |
fix #735
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go index be03ebd6cd..bf46696dfb 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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 } |