forked from forgejo/forgejo
fix bug when push a branch name with / & fix an integration test bug (#1689)
This commit is contained in:
parent
79494047b0
commit
2bb8b3a562
4 changed files with 53 additions and 7 deletions
|
@ -13,7 +13,7 @@ import (
|
|||
// GetProtectedBranchBy get protected branch information
|
||||
func GetProtectedBranchBy(ctx *macaron.Context) {
|
||||
repoID := ctx.ParamsInt64(":id")
|
||||
branchName := ctx.Params(":branch")
|
||||
branchName := ctx.Params("*")
|
||||
protectBranch, err := models.GetProtectedBranchBy(repoID, branchName)
|
||||
if err != nil {
|
||||
ctx.JSON(500, map[string]interface{}{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue