From 721bc373d318048fce752c62a58a36aa88e4d44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20N=C3=BCtzi?= Date: Mon, 22 Apr 2024 18:29:39 +0200 Subject: [PATCH] fix: Do not print warning on uninstall --- githooks/cmd/install/install.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/githooks/cmd/install/install.go b/githooks/cmd/install/install.go index f315e28f..7f0f0afb 100644 --- a/githooks/cmd/install/install.go +++ b/githooks/cmd/install/install.go @@ -120,11 +120,7 @@ into the current repository.`, "Uninstall also Git config values of Githooks and cached\n"+ "settings (checksums etc.) inside the repository.") - installCmd.PersistentPreRun = func(_ *cobra.Command, _ []string) { - ccm.CheckGithooksSetup(ctx.Log, ctx.GitX) - } - - uninstallCmd.PersistentPreRun = func(_ *cobra.Command, _ []string) { + installCmd.PersistentPostRun = func(_ *cobra.Command, _ []string) { ccm.CheckGithooksSetup(ctx.Log, ctx.GitX) }