Skip to content

Commit b3d7fcc

Browse files
authored
Properly quote regex arguments
1 parent f639503 commit b3d7fcc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

git-secrets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,9 @@ case "${COMMAND}" in
391391
--scan-history) scan_with_fn_or_die "scan_history" "$@" ;;
392392
--list)
393393
if [ ${GLOBAL} -eq 1 ]; then
394-
git config --global --get-regex secrets.*
394+
git config --global --get-regex 'secrets.*'
395395
else
396-
git config --get-regex secrets.*
396+
git config --get-regex 'secrets.*'
397397
fi
398398
;;
399399
--install)

0 commit comments

Comments
 (0)