From 074f38bc48714d4e41e3854c4de766d38c312a6f Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Sun, 19 Jan 2025 14:35:18 +0100 Subject: [PATCH] git: squash spurious warning when checking safe.directory --- lib/functions/general/git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/general/git.sh b/lib/functions/general/git.sh index 9ee5322f7d35..b6c3f16ced28 100644 --- a/lib/functions/general/git.sh +++ b/lib/functions/general/git.sh @@ -57,7 +57,7 @@ function git_ensure_safe_directory() { local git_dir="$1" if [[ -e "$1/.git" ]]; then display_alert "git: Marking all directories as safe, which should include" "$git_dir" "debug" - regular_git config --global --get safe.directory "$1" > /dev/null || regular_git config --global --add safe.directory "$1" + git config --global --get safe.directory "$1" > /dev/null || regular_git config --global --add safe.directory "$1" fi else display_alert "git not installed" "a true wonder how you got this far without git - it will be installed for you" "warn"