diff --git a/src/cli/install.rs b/src/cli/install.rs index 13ade8a6..702c46bb 100644 --- a/src/cli/install.rs +++ b/src/cli/install.rs @@ -35,8 +35,9 @@ pub(crate) async fn install( ) -> Result { if git_dir.is_none() && git::has_hooks_path_set().await? { anyhow::bail!( - "Cowardly refusing to install hooks with `core.hooksPath` set.\nhint: `{}` to fix this", - "git config --unset-all core.hooksPath".cyan() + "Cowardly refusing to install hooks with `core.hooksPath` set.\nhint: Run these commands to remove core.hooksPath:\nhint: {}\nhint: {}", + "git config --unset-all --local core.hooksPath".cyan(), + "git config --unset-all --global core.hooksPath".cyan() ); }