Skip to content

Commit 3a62761

Browse files
committed
test(checkpoints): stabilize diff path on macOS CI by using workspaceDir for absolute paths (avoid /private/tmp vs /tmp mismatch)
1 parent 243a034 commit 3a62761

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/checkpoints/ShadowCheckpointService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ export abstract class ShadowCheckpointService extends EventEmitter {
328328
this.log(`[${this.constructor.name}#getDiff] diffing ${to ? `${from}..${to}` : `${from}..HEAD`}`)
329329
const { files } = to ? await this.git.diffSummary([`${from}..${to}`]) : await this.git.diffSummary([from])
330330

331-
const cwdPath = (await this.getShadowGitConfigWorktree(this.git)) || this.workspaceDir || ""
331+
// Always use the provided workspaceDir to avoid symlink-induced path mismatches (e.g., /tmp vs /private/tmp)
332+
const cwdPath = this.workspaceDir
332333

333334
for (const file of files) {
334335
const relPath = file.file

0 commit comments

Comments
 (0)