From 3d6ba043bdbd9e2bd3735fb9ad3ade12d417abc1 Mon Sep 17 00:00:00 2001 From: Lutz Lengemann Date: Fri, 15 May 2020 15:52:46 +0200 Subject: [PATCH] Change `--list` to only search for section --- git-secrets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)