Skip to content

Commit

Permalink
git: squash spurious warning when checking safe.directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rpardini authored and igorpecovnik committed Jan 21, 2025
1 parent 9469ce3 commit f21e700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/general/git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f21e700

Please sign in to comment.