#1266 convert name to lower when handle SSH

This commit is contained in:
Unknwon 2015-11-09 11:34:04 -05:00
parent 0d4498429c
commit 647688bd06
3 changed files with 4 additions and 2 deletions

View file

@ -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 {