aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-10 16:58:41 -0500
committerUnknwon <u@gogs.io>2017-03-10 16:58:41 -0500
commit8fa6d0d302f487552800ca0d8d60da19b8f99387 (patch)
tree69abff9584dd42d2970a89e4abdb19b9a009107c /cmd
parenta534f9f9b66c63aa08ba61587c3d19a9e952a491 (diff)
repo/pull: handle head repository of merged pull requests deleted
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 57f3bcd6..8274c4d2 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -616,9 +616,7 @@ func runWeb(ctx *cli.Context) error {
}, ignSignIn, context.RepoAssignment(), context.RepoRef())
m.Group("/:username", func() {
- m.Group("", func() {
- m.Get("/:reponame", repo.Home)
- }, ignSignIn, context.RepoAssignment(true), context.RepoRef())
+ m.Get("/:reponame", ignSignIn, context.RepoAssignment(true), context.RepoRef(), repo.Home)
m.Group("/:reponame", func() {
m.Head("/tasks/trigger", repo.TriggerTask)