diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-24 17:43:33 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-24 17:43:33 -0400 |
commit | 25268577a53bd326b21866c792d7ec390a6e4d94 (patch) | |
tree | 457fbb28905efe99389e4db5bcfb413ca05f4d4d /cmd | |
parent | 612fdb98df0ff84c81603a5c8d66a5f2f4395bd5 (diff) |
Fix download archive issue
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -343,6 +343,7 @@ func runWeb(*cli.Context) { r.Get("/issues/:index", repo.ViewIssue) r.Get("/pulls", repo.Pulls) r.Get("/branches", repo.Branches) + r.Get("/archive/*", repo.Download) }, ignSignIn, middleware.RepoAssignment(true)) m.Group("/:username/:reponame", func(r *macaron.Router) { @@ -355,8 +356,6 @@ func runWeb(*cli.Context) { r.Get("/commit/:branchname", repo.Diff) r.Get("/commit/:branchname/*", repo.Diff) r.Get("/releases", repo.Releases) - r.Get("/archive/:branchname/*.*", repo.Download) - r.Get("/archive/*.*", repo.Download) r.Get("/compare/:before([a-z0-9]+)...:after([a-z0-9]+)", repo.CompareDiff) }, ignSignIn, middleware.RepoAssignment(true, true)) |