From 0e5370f7ca179b9c18399e61e32f60a2f8eeb7f0 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 1 Nov 2024 15:45:56 +0100 Subject: [PATCH] Remove `safe` config section after any action --- scripts/Common/OS/install.fish | 1 - scripts/lib/action.fish | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Common/OS/install.fish b/scripts/Common/OS/install.fish index 97a67e8d..5e3eeb27 100755 --- a/scripts/Common/OS/install.fish +++ b/scripts/Common/OS/install.fish @@ -40,7 +40,6 @@ function installAction -V dir end and runHook postInstall || true - and sudo git config remove-section --system safe || true and begin echo "Cleaning installation scripts..." diff --git a/scripts/lib/action.fish b/scripts/lib/action.fish index 41cd7362..d80be26e 100644 --- a/scripts/lib/action.fish +++ b/scripts/lib/action.fish @@ -24,6 +24,7 @@ function runAction -V dir and runHook preAction || true $argv and runHook postAction || true + sudo git config remove-section --system safe || true end function runSetupUserAction -V dir