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.* |