mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
test(checkpoints): stabilize diff path on macOS CI by using workspaceDir for absolute paths (avoid /private/tmp vs /tmp mismatch)
This commit is contained in:
parent
5f5cdf1b46
commit
d6bf409439
1 changed files with 2 additions and 1 deletions
|
|
@ -330,7 +330,8 @@ export abstract class ShadowCheckpointService extends EventEmitter {
|
|||
this.log(`[${this.constructor.name}#getDiff] diffing ${to ? `${from}..${to}` : `${from}..HEAD`}`)
|
||||
const { files } = to ? await this.git.diffSummary([`${from}..${to}`]) : await this.git.diffSummary([from])
|
||||
|
||||
const cwdPath = (await this.getShadowGitConfigWorktree(this.git)) || this.workspaceDir || ""
|
||||
// Always use the provided workspaceDir to avoid symlink-induced path mismatches (e.g., /tmp vs /private/tmp)
|
||||
const cwdPath = this.workspaceDir
|
||||
|
||||
for (const file of files) {
|
||||
const relPath = file.file
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue