mirror of
https://github.com/bendtherules/opencode-multi-model.git
synced 2026-08-18 13:42:21 +00:00
fix: sanitize session name in getWorktreesForSession function
This commit is contained in:
+1
-1
@@ -332,7 +332,7 @@ export async function getWorktreesForSession(sessionName: string): Promise<Workt
|
|||||||
const { stdout } = await runCommand(["git", "worktree", "list", "--porcelain"]);
|
const { stdout } = await runCommand(["git", "worktree", "list", "--porcelain"]);
|
||||||
const worktrees: WorktreeInfo[] = [];
|
const worktrees: WorktreeInfo[] = [];
|
||||||
|
|
||||||
const sessionPath = getSessionPath(sessionName);
|
const sessionPath = getSessionPath(sanitizeName(sessionName));
|
||||||
|
|
||||||
let currentWorktree: Partial<WorktreeInfo> = {};
|
let currentWorktree: Partial<WorktreeInfo> = {};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user