summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
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 {