From f5f51e6a6b4b7de47f3445532cc0a1bb26cb21f8 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 d80be26e..986e5775 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