From 2bb8b3a56219f3fcba7c77c7a8fc10769b8c11bd Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 8 May 2017 10:55:27 +0800 Subject: fix bug when push a branch name with / & fix an integration test bug (#1689) --- routers/private/internal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/private/internal.go') diff --git a/routers/private/internal.go b/routers/private/internal.go index f663306e92..3e7233226a 100644 --- a/routers/private/internal.go +++ b/routers/private/internal.go @@ -42,6 +42,6 @@ func RegisterRoutes(m *macaron.Macaron) { m.Group("/", func() { m.Post("/ssh/:id/update", UpdatePublicKey) m.Post("/push/update", PushUpdate) - m.Get("/branch/:id/:branch", GetProtectedBranchBy) + m.Get("/branch/:id/*", GetProtectedBranchBy) }, CheckInternalToken) } -- cgit v1.2.3