From fe214886e2c64333506560c89ed5cb2f8389f359 Mon Sep 17 00:00:00 2001 From: maxi-bee <84531851+maxi-bee@users.noreply.github.com> Date: Tue, 11 Nov 2025 12:31:30 +0100 Subject: [PATCH] adds quotes on list argument - adds quotes to prevent `git-secrets` breaking and erroring out in some bash configurations --- git-secrets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-secrets b/git-secrets index e46ba8c..440fc4a 100755 --- a/git-secrets +++ b/git-secrets @@ -341,9 +341,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)