Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix(docs): use `git pull` instead of `git fetch` in pre-switch hook example (#1323)
worktrunk-bot691060e6658e
diff --git a/docs/content/hook.md b/docs/content/hook.mdindex ddf83741c..3a85e66ab 100644--- a/docs/content/hook.md+++ b/docs/content/hook.md@@ -40,11 +40,11 @@ Runs before every `wt switch` — before branch validation or worktree creation.```toml[pre-switch]-# Fetch if last fetch was more than 6 hours ago-fetch = """+# Pull if last fetch was more than 6 hours ago+pull = """FETCH_HEAD="$(git rev-parse --git-common-dir)/FETCH_HEAD"if [ "$(find "$FETCH_HEAD" -mmin +360 2>/dev/null)" ] || [ ! -f "$FETCH_HEAD" ]; then- git fetch+ git pullfi"""```diff --git a/skills/worktrunk/reference/hook.md b/skills/worktrunk/reference/hook.mdindex 0639e184c..c1bf5245b 100644--- a/skills/worktrunk/reference/hook.md+++ b/skills/worktrunk/reference/hook.md@@ -31,11 +31,11 @@ Runs before every `wt switch` — before branch validation or worktree creation.```toml[pre-switch]-# Fetch if last fetch was more than 6 hours ago-fetch = """+# Pull if last fetch was more than 6 hours ago+pull = """FETCH_HEAD="$(git rev-parse --git-common-dir)/FETCH_HEAD"if [ "$(find "$FETCH_HEAD" -mmin +360 2>/dev/null)" ] || [ ! -f "$FETCH_HEAD" ]; then- git fetch+ git pullfi"""```diff --git a/src/cli/mod.rs b/src/cli/mod.rsindex c298d667f..86f4a4dc9 100644--- a/src/cli/mod.rs+++ b/src/cli/mod.rs@@ -1080,11 +1080,11 @@ Runs before every `wt switch` — before branch validation or worktree creation.```toml[pre-switch]-# Fetch if last fetch was more than 6 hours ago-fetch = """+# Pull if last fetch was more than 6 hours ago+pull = """FETCH_HEAD="$(git rev-parse --git-common-dir)/FETCH_HEAD"if [ "$(find "$FETCH_HEAD" -mmin +360 2>/dev/null)" ] || [ ! -f "$FETCH_HEAD" ]; then- git fetch+ git pullfi"""```