summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-09 11:34:04 -0500
committerUnknwon <u@gogs.io>2015-11-09 11:34:04 -0500
commit647688bd0604b874c6ee877475b6da1217b2cdcd (patch)
tree82c40a0bd447252b806960d85690073a317ff4af /cmd
parent0d4498429cd912f78a508a4f4bc6856b15c73ac4 (diff)
downloadgitea-647688bd0604b874c6ee877475b6da1217b2cdcd.tar.gz
gitea-647688bd0604b874c6ee877475b6da1217b2cdcd.zip
#1266 convert name to lower when handle SSH
Diffstat (limited to 'cmd')
-rw-r--r--cmd/serve.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/serve.go b/cmd/serve.go
index 5c527dffc8..fb90f6b448 100644
--- a/cmd/serve.go
+++ b/cmd/serve.go
@@ -144,8 +144,8 @@ func runServ(c *cli.Context) {
if len(rr) != 2 {
fail("Invalid repository path", "Invalid repository path: %v", args)
}
- repoUserName := rr[0]
- repoName := strings.TrimSuffix(rr[1], ".git")
+ repoUserName := strings.ToLower(rr[0])
+ repoName := strings.ToLower(strings.TrimSuffix(rr[1], ".git"))
repoUser, err := models.GetUserByName(repoUserName)
if err != nil {