Skip to content

Commit

Permalink
fix: Do not print warning on uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed Apr 22, 2024
1 parent 21d2276 commit 721bc37
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions githooks/cmd/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 721bc37

Please sign in to comment.