diff options
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/branch.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/routers/repo/branch.go b/routers/repo/branch.go index 8b987f0a60..ae87aa5b3a 100644 --- a/routers/repo/branch.go +++ b/routers/repo/branch.go @@ -74,12 +74,6 @@ func DeleteBranchPost(ctx *context.Context) { return } - // Delete branch in local copy if it exists - if err := ctx.Repo.Repository.DeleteLocalBranch(branchName); err != nil { - ctx.Flash.Error(ctx.Tr("repo.branch.deletion_failed", branchName)) - return - } - ctx.Flash.Success(ctx.Tr("repo.branch.deletion_success", branchName)) } |