Skip to content

Commit eeb960e

Browse files
committed
Print installation path for git hooks files
1 parent 6030442 commit eeb960e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/mix/tasks/git_hooks/install.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ defmodule Mix.Tasks.GitHooks.Install do
6262
{:ok, body} ->
6363
target_file_path = GitPath.git_hooks_path_for(git_hook_atom_as_kebab_string)
6464

65+
unless opts[:quiet] || !Config.verbose?() do
66+
Printer.info("Installed git hook: #{target_file_path}")
67+
end
68+
6569
target_file_body =
6670
body
6771
|> String.replace("$git_hook", git_hook_atom_as_string)

0 commit comments

Comments
 (0)