Merge branch 'main' into patch-17

pull/32565/head
Kerwin Bryant 3 days ago committed by GitHub
commit c71520088d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      routers/api/v1/repo/branch.go

@ -133,11 +133,6 @@ func DeleteBranch(ctx *context.APIContext) {
branchName := ctx.PathParam("*")
if ctx.Repo.Repository.IsEmpty {
ctx.Error(http.StatusForbidden, "", "Git Repository is empty.")
return
}
// check whether branches of this repository has been synced
totalNumOfBranches, err := db.Count[git_model.Branch](ctx, git_model.FindBranchOptions{
RepoID: ctx.Repo.Repository.ID,

Loading…
Cancel
Save