tasks: branch new worktrees off agentydragon instead of master

This commit is contained in:
Rai (Michael Pokorny)
2025-06-24 13:39:21 -07:00
parent 5c62d7d42c
commit 84a4e64bf1
2 changed files with 4 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ Tasks live under `agentydragon/tasks/` as individual Markdown files. Please upda
- ```
-
- Without `--agent`, this creates or reuses a worktree at
- `agentydragon/tasks/.worktrees/<task-id>-<task-slug>` off the `master` branch.
- `agentydragon/tasks/.worktrees/<task-id>-<task-slug>` off the `agentydragon` branch.
- With `--agent`, after setup it launches a Codex agent in that workspace,
- preloaded to work on the specified task from its Markdown file.

View File

@@ -44,14 +44,15 @@ mkdir -p "$worktrees_dir"
# Create branch if it does not exist
if ! git show-ref --verify --quiet "refs/heads/$branch"; then
echo "Creating branch $branch from master..."
git branch --track "$branch" master
echo "Creating branch $branch from agentydragon branch..."
git branch --track "$branch" agentydragon
fi
# Create worktree if it does not exist
if [ ! -d "$worktree_path" ]; then
echo "Creating worktree for $branch at $worktree_path"
git worktree add "$worktree_path" "$branch"
else
echo "Worktree for $branch already exists at $worktree_path"
fi