diff options
Diffstat (limited to 'routers/web/repo/branch.go')
-rw-r--r-- | routers/web/repo/branch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/branch.go b/routers/web/repo/branch.go index f89a5543c1..84c3864669 100644 --- a/routers/web/repo/branch.go +++ b/routers/web/repo/branch.go @@ -84,7 +84,7 @@ func Branches(ctx *context.Context) { // DeleteBranchPost responses for delete merged branch func DeleteBranchPost(ctx *context.Context) { defer redirect(ctx) - branchName := ctx.Form("name") + branchName := ctx.FormString("name") if err := repo_service.DeleteBranch(ctx.User, ctx.Repo.Repository, ctx.Repo.GitRepo, branchName); err != nil { switch { @@ -113,7 +113,7 @@ func RestoreBranchPost(ctx *context.Context) { defer redirect(ctx) branchID := ctx.FormInt64("branch_id") - branchName := ctx.Form("name") + branchName := ctx.FormString("name") deletedBranch, err := ctx.Repo.Repository.GetDeletedBranchByID(branchID) if err != nil { |