aboutsummaryrefslogtreecommitdiff
path: root/internal/route/repo/branch.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/repo/branch.go')
-rw-r--r--internal/route/repo/branch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/repo/branch.go b/internal/route/repo/branch.go
index c8d49bbb..2ee353b3 100644
--- a/internal/route/repo/branch.go
+++ b/internal/route/repo/branch.go
@@ -119,11 +119,11 @@ func DeleteBranchPost(c *context.Context) {
c.Redirect(redirectTo)
}()
- if !c.Repo.GitRepo.IsBranchExist(branchName) {
+ if !c.Repo.GitRepo.HasBranch(branchName) {
return
}
if len(commitID) > 0 {
- branchCommitID, err := c.Repo.GitRepo.GetBranchCommitID(branchName)
+ branchCommitID, err := c.Repo.GitRepo.BranchCommitID(branchName)
if err != nil {
log.Error("Failed to get commit ID of branch %q: %v", branchName, err)
return