Browse Source

fix #1227

for-closed-social
Unknwon 9 years ago
parent
commit
4cd892c99f
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      cmd/web.go

+ 5
- 1
cmd/web.go View File

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

Loading…
Cancel
Save