Skip to content

Commit 920fc7b

Browse files
committed
fix: correctly name worktree-setup mise hook for broadest compatibitity
1 parent 6ffec49 commit 920fc7b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ When creating a new worktree (`gw co -b ...` or remote auto-create), git-work ru
179179
- If `mise` is not installed, hook is skipped
180180
- By default, git-work attempts:
181181
- trust propagation (`mise trust`) when source worktree is trusted
182-
- task execution: `mise run worktree:setup`
182+
- task execution: `mise run worktree-setup`
183183

184184
Configuration (stored in repo git config under `.bare`):
185185

lib/git_work/hooks.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ defmodule GitWork.Hooks do
9595
case config_get_string(root, "git-work.hooks.mise.task") do
9696
{:ok, ""} -> nil
9797
{:ok, value} -> value
98-
:unset -> "worktree:setup"
98+
:unset -> "worktree-setup"
9999
end
100100
end
101101

0 commit comments

Comments
 (0)