From 3eb57370a658a648ba504776b962d1d23cc57693 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 10 Mar 2017 23:37:25 -0500 Subject: api/repo: fix cannot reponse branch with slashes (#4198) --- routers/api/v1/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api/v1/api.go') diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index df5fb5c3..6221bcd7 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -258,7 +258,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/forks", repo.ListForks) m.Group("/branches", func() { m.Get("", repo.ListBranches) - m.Get("/:branchname", repo.GetBranch) + m.Get("/*", repo.GetBranch) }) m.Group("/keys", func() { m.Combo("").Get(repo.ListDeployKeys). -- cgit v1.2.3