summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-12 01:29:36 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-12 01:29:36 -0500
commit2f3a7e53cb58e922055baf3cf14138100a1f05ac (patch)
tree847a3474584d616a16013aa0edf13de7118be91d /models
parent42c7bb75295ae7587b7ca36f103a7dc25f87754a (diff)
downloadgitea-2f3a7e53cb58e922055baf3cf14138100a1f05ac.tar.gz
gitea-2f3a7e53cb58e922055baf3cf14138100a1f05ac.zip
fix #735
Diffstat (limited to 'models')
-rw-r--r--models/repo.go1
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
}