We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7103da3 commit f330211Copy full SHA for f330211
src/main/services/WorktreePoolService.ts
@@ -510,8 +510,8 @@ export class WorktreePoolService {
510
const resolvedGitWorktreePath = path.isAbsolute(gitWorktreePath)
511
? gitWorktreePath
512
: path.resolve(worktreePath, gitWorktreePath);
513
- const mainGitDir = resolvedGitWorktreePath.replace(/[\\/]worktrees[\\/].*$/, '');
514
- return mainGitDir.replace(/[\\/]\\.git$/, '');
+ const mainGitDir = resolvedGitWorktreePath.replace(/[\\\\/]worktrees[\\\\/].*$/, '');
+ return mainGitDir.replace(/[\\\\/]\\.git$/, '');
515
} catch {
516
return null;
517
}
0 commit comments