Always flag git repo as safe
This commit is contained in:
parent
7e0fdb1ff7
commit
38d2905e9b
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
|
||||
git config --system --add safe.directory (realpath "$(status dirname)/../..")
|
||||
|
||||
and runHook preAction || true
|
||||
$argv
|
||||
|
|
Loading…
Reference in a new issue