We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69268ee commit 355889dCopy full SHA for 355889d
routers/api/v1/repo/branch.go
@@ -133,11 +133,6 @@ func DeleteBranch(ctx *context.APIContext) {
133
134
branchName := ctx.PathParam("*")
135
136
- if ctx.Repo.Repository.IsEmpty {
137
- ctx.Error(http.StatusForbidden, "", "Git Repository is empty.")
138
- return
139
- }
140
-
141
// check whether branches of this repository has been synced
142
totalNumOfBranches, err := db.Count[git_model.Branch](ctx, git_model.FindBranchOptions{
143
RepoID: ctx.Repo.Repository.ID,
0 commit comments