mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
chore(checkpoints): remove redundant normalizedPath redeclarations
This commit is contained in:
parent
fd22d0f080
commit
05fb2a3645
1 changed files with 0 additions and 4 deletions
|
|
@ -251,8 +251,6 @@ export abstract class ShadowCheckpointService extends EventEmitter {
|
|||
!normalizedPath.startsWith(".git/") &&
|
||||
normalizedPath !== ".git/HEAD"
|
||||
) {
|
||||
// Normalize path first to handle Windows-style backslashes
|
||||
const normalizedPath = result.path.replace(/\\/g, "/")
|
||||
// Extract repo directory (remove .git/HEAD)
|
||||
const gitDir = path.dirname(normalizedPath)
|
||||
const repoDir = path.dirname(gitDir)
|
||||
|
|
@ -284,8 +282,6 @@ export abstract class ShadowCheckpointService extends EventEmitter {
|
|||
const content = await fs.readFile(gitFilePath, "utf8")
|
||||
if (content.trim().startsWith("gitdir:")) {
|
||||
// This is a worktree - exclude its directory
|
||||
// Normalize path first to handle Windows-style backslashes
|
||||
const normalizedPath = result.path.replace(/\\/g, "/")
|
||||
const repoDir = path.dirname(normalizedPath)
|
||||
nestedRepos.add(repoDir)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue