Compare commits

...

5 Commits

Author SHA1 Message Date
Nanashi.
6720bf4230
Merge 110353ee6c into 2d7d9f7ff5 2024-09-05 11:31:35 -04:00
yasonk
2d7d9f7ff5
Provide explanation for where user email came from (#1869)
* Provide explanation for where user email came from

* bringing back the newline
2024-09-02 09:53:38 -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 6 deletions

View File

@ -286,6 +286,7 @@ jobs:
git commit -m "generated"
git push
```
*NOTE:* The user email is `{user.id}+{user.login}@users.noreply.github.com`. See users API: https://api.github.com/users/github-actions%5Bbot%5D
# License

View File

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