summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-07 11:51:53 -0400
committerUnknwon <u@gogs.io>2015-09-07 11:51:53 -0400
commit56eb25209817833613a9f69fb6011f30bdef7677 (patch)
tree8fc596b63a4845c7d8ec8af8b5daabc1a4ec9e6e /cmd/web.go
parent645d4d0c5bd283003d922400232bcff0f5bf8836 (diff)
downloadgitea-56eb25209817833613a9f69fb6011f30bdef7677.tar.gz
gitea-56eb25209817833613a9f69fb6011f30bdef7677.zip
#1593 fix repo name router bug
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 131c839a13..842787dd00 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -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() {