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

@@ -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