fix: change git clone --bare to git clone in create_worktree()

Issue #57: worktree creation was creating bare repos instead of
proper worktrees, breaking parallel agent workflow.

The --bare flag created repos with no working directory, making them
useless for development. Changed to regular clone.
This commit is contained in:
shokollm
2026-04-01 00:51:05 +00:00
parent 0d408e8fd8
commit 6ad51f3c0b

View File

@@ -208,7 +208,7 @@ create_worktree() {
fi fi
echo "Creating worktree at '$worktree_path'..." echo "Creating worktree at '$worktree_path'..."
git clone --bare "$repo_url" "$worktree_path" 2>/dev/null || { git clone "$repo_url" "$worktree_path" 2>/dev/null || {
echo "Error: Failed to clone repository" >&2 echo "Error: Failed to clone repository" >&2
exit 1 exit 1
} }