#1266 convert name to lower when handle SSH

This commit is contained in:
Unknwon committed 2015-11-09 11:34:04 -05:00
1 parent 0d4498429c
commit 647688bd06
3 files changed
+4 -2

No files matched your search

+2 -2
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 {