Always flag git repo as safe
This commit is contained in:
parent
0e5370f7ca
commit
f5f51e6a6b
1 changed files with 1 additions and 3 deletions
|
@ -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`.'
|
||||
|
||||
echo "Flagging repository as safe..."
|
||||
if ! git status -C (status dirname) &> /dev/null
|
||||
git config --system --add safe.directory (realpath "$(status dirname)/../..")
|
||||
end
|
||||
|
||||
and runHook preAction || true
|
||||
$argv
|
||||
|
|
Loading…
Reference in a new issue