From 38d2905e9b45c5bc5fefcecb5f4e02808d54565f Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 1 Nov 2024 16:39:18 +0100 Subject: [PATCH] Always flag git repo as safe --- scripts/lib/action.fish | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/lib/action.fish b/scripts/lib/action.fish index 64ede63c..6b77da97 100644 --- a/scripts/lib/action.fish +++ b/scripts/lib/action.fish @@ -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