#1593 fix repo name router bug

This commit is contained in:
Unknwon 2015-09-07 11:51:53 -04:00
parent 645d4d0c5b
commit 56eb252098
3 changed files with 16 additions and 16 deletions

View file

@ -545,7 +545,7 @@ func runWeb(ctx *cli.Context) {
m.Group("/:username", func() {
m.Group("/:reponame", func() {
m.Get("", repo.Home)
m.Get(".git", repo.Home)
m.Get("\\.git", repo.Home)
}, ignSignIn, middleware.RepoAssignment(true, true), middleware.RepoRef())
m.Group("/:reponame", func() {