zachdaniel / git_ops

A tool for version and changelog management in Elixir via conventional commits.
MIT License
134 stars 24 forks source link

git_ops.message_hook fails #54

Closed heywhy closed 1 year ago

heywhy commented 1 year ago

Tried installing the message hook for convention checks but it fails with the below:

** (KeyError) key :error not found in: %Git.Error{args: ["core.hookspath"], code: 1, command: "config", message: ""}
    lib/git_ops/git.ex:90: GitOps.Git.handle_hooks_path_error/1
    lib/mix/tasks/git_ops.message_hook.ex:180: Mix.Tasks.GitOps.MessageHook.commit_msg_hook_info!/1
    lib/mix/tasks/git_ops.message_hook.ex:61: Mix.Tasks.GitOps.MessageHook.install/1
    (mix 1.13.4) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
    (mix 1.13.4) lib/mix/cli.ex:84: Mix.CLI.run_task/2
zachdaniel commented 1 year ago

fixed in #55