1
0
mirror of https://github.com/actions/checkout.git synced 2026-03-10 09:01:44 +08:00

Compare commits

...

5 Commits

Author SHA1 Message Date
Nanashi.
e4725ba5a3
Merge 110353ee6c into 8edcb1bdb4 2025-08-04 14:07:56 +10:00
Tingluo Huang
8edcb1bdb4
Update CODEOWNERS for actions (#2224) 2025-07-23 09:20:20 -04:00
Nanashi
110353ee6c
Merge branch 'main' into patch-1 2022-12-20 20:06:47 +09:00
Nanashi
51ffdcdb1d
Fix: Fix Syntax 2022-06-20 17:16:41 +09:00
Nanashi
f2738ccb35
Fix: Don't remove auth if submodules are off 2022-06-20 17:08:30 +09:00
2 changed files with 9 additions and 7 deletions

View File

@ -1 +1 @@
* @actions/actions-launch * @actions/actions-runtime

View File

@ -364,11 +364,13 @@ class GitAuthHelper {
} }
} }
const pattern = regexpHelper.escape(configKey) if (this.settings.submodules) {
await this.git.submoduleForeach( const pattern = regexpHelper.escape(configKey)
// wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline await this.git.submoduleForeach(
`sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`, // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
true `sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`,
) true
)
}
} }
} }