When there's secrets branch for example, .git/config may contains the following lines:
[branch "secrets"]
remote = origin
merge = refs/heads/secrets
If so, git secrets --list returns these config incorrectly:
$ git secrets --list
branch.secrets.remote origin
branch.secrets.merge refs/heads/secrets
...
It seems to be caused by the following regexes:
|
if [ ${GLOBAL} -eq 1 ]; then |
|
git config --global --get-regex secrets.* |
|
else |
|
git config --get-regex secrets.* |
When there's
secretsbranch for example,.git/configmay contains the following lines:If so,
git secrets --listreturns these config incorrectly:It seems to be caused by the following regexes:
git-secrets/git-secrets
Lines 340 to 343 in 5e28df3