Skip to content

Commit 4a18c72

Browse files
authored
Remove extended glob pattern from branch protection UI (#33125)
Underlying go library has no support for it Fixes: #33121 --- I never touched frontend tests so pointers how to write them are welcome. This can be either fix or workaround, depending if this is something gitea should support in the future or not. The golang side is unlikely to get updates though.
1 parent 1a95d9d commit 4a18c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/repo-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function initRepoSettingsBranches() {
107107
let matched = false;
108108
const statusCheck = el.getAttribute('data-status-check');
109109
for (const pattern of validPatterns) {
110-
if (minimatch(statusCheck, pattern)) {
110+
if (minimatch(statusCheck, pattern, {noext: true})) { // https://github.com/go-gitea/gitea/issues/33121 disable extended glob syntax
111111
matched = true;
112112
break;
113113
}

0 commit comments

Comments
 (0)