mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
tasks: branch new worktrees off agentydragon instead of master
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user