Compare commits

...

4 Commits

Author SHA1 Message Date
rizwangourysk 209963d544
Merge 7a020261fa into 28802689a1 2026-07-17 13:46:09 -04:00
Aiqiao Yan 28802689a1
escape values passed to --unset (#2530) 2026-07-17 13:44:40 -04:00
rizwangourysk 7a020261fa added workflow 2026-03-26 15:45:27 +05:30
rizwangourysk bd5c14db95 added changes 2026-03-26 14:56:46 +05:30
3 changed files with 25 additions and 2 deletions

2
dist/index.js vendored
View File

@ -35913,7 +35913,7 @@ class GitCommandManager {
else { else {
args.push(globalConfig ? '--global' : '--local'); args.push(globalConfig ? '--global' : '--local');
} }
args.push('--unset', configKey, configValue); args.push('--unset', configKey, regexp_helper_escape(configValue));
const output = await this.execGit(args, true); const output = await this.execGit(args, true);
return output.exitCode === 0; return output.exitCode === 0;
} }

23
pr.yaml Normal file
View File

@ -0,0 +1,23 @@
---
# This workflow will execute on pull request to dev branch
name: pr-workflow
on:
pull_request:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: get the code
uses: actions/checkout@v6
- name: compile the code
run: mvn compile
- name: test the code
run: mvn test
- name: create the package
run: mvn package

View File

@ -510,7 +510,7 @@ class GitCommandManager {
} else { } else {
args.push(globalConfig ? '--global' : '--local') args.push(globalConfig ? '--global' : '--local')
} }
args.push('--unset', configKey, configValue) args.push('--unset', configKey, regexpHelper.escape(configValue))
const output = await this.execGit(args, true) const output = await this.execGit(args, true)
return output.exitCode === 0 return output.exitCode === 0