aboutsummaryrefslogtreecommitdiffstats
path: root/models/branches.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/branches.go')
-rw-r--r--models/branches.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/branches.go b/models/branches.go
index 7cc0ebab4d..d1921d5500 100644
--- a/models/branches.go
+++ b/models/branches.go
@@ -6,7 +6,6 @@ package models
import (
"fmt"
- "strings"
"time"
"code.gitea.io/gitea/modules/base"
@@ -70,7 +69,7 @@ func GetProtectedBranchByRepoID(RepoID int64) ([]*ProtectedBranch, error) {
// GetProtectedBranchBy getting protected branch by ID/Name
func GetProtectedBranchBy(repoID int64, BranchName string) (*ProtectedBranch, error) {
- rel := &ProtectedBranch{RepoID: repoID, BranchName: strings.ToLower(BranchName)}
+ rel := &ProtectedBranch{RepoID: repoID, BranchName: BranchName}
has, err := x.Get(rel)
if err != nil {
return nil, err