diff --git a/git-secrets b/git-secrets index 11be153..ad21612 100755 --- a/git-secrets +++ b/git-secrets @@ -338,9 +338,9 @@ case "${COMMAND}" in --scan-history) scan_with_fn_or_die "scan_history" "$@" ;; --list) if [ ${GLOBAL} -eq 1 ]; then - git config --global --get-regex secrets.* + git config --global --get-regex "^secrets.*" else - git config --get-regex secrets.* + git config --get-regex "^secrets.*" fi ;; --install)