Always flag git repo as safe

This commit is contained in:
Manuel Thalmann 2024-11-01 16:39:18 +01:00
parent 0e5370f7ca
commit f5f51e6a6b

View file

@ -17,9 +17,7 @@ function runAction -V dir
and runHook --force installValhallaDeps 'Please set up a function `installValhallaDeps` for installing `fish`, `git`, `jq`, `nix`, `sudo` and `tmux`.' and runHook --force installValhallaDeps 'Please set up a function `installValhallaDeps` for installing `fish`, `git`, `jq`, `nix`, `sudo` and `tmux`.'
echo "Flagging repository as safe..." echo "Flagging repository as safe..."
if ! git status -C (status dirname) &> /dev/null git config --system --add safe.directory (realpath "$(status dirname)/../..")
git config --system --add safe.directory (realpath "$(status dirname)/../..")
end
and runHook preAction || true and runHook preAction || true
$argv $argv