We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8b35fd commit 3c17638Copy full SHA for 3c17638
models/git/protected_branch.go
@@ -83,7 +83,8 @@ func IsRuleNameSpecial(ruleName string) bool {
83
}
84
85
func (protectBranch *ProtectedBranch) loadGlob() {
86
- if protectBranch.globRule == nil && !protectBranch.isPlainName {
+ if protectBranch.isPlainName || protectBranch.globRule != nil {
87
+ return
88
// detect if it is not glob
89
if !IsRuleNameSpecial(protectBranch.RuleName) {
90
protectBranch.isPlainName = true
0 commit comments