Skip to content

Commit 9697774

Browse files
committed
Evals: Run git add before getting files for judge
1 parent 096af7b commit 9697774

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

evals/git-evals/run-git-evals.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ function getCodebuffFileStates(
274274
projectPath: string,
275275
): string {
276276
// Get all changes since the commit before the target commit
277-
// This captures both uncommitted changes and any commits made during the eval
277+
execFileSync('git', ['add', '.'], { cwd: projectPath, stdio: 'ignore' })
278+
278279
return execFileSync('git', ['diff', `${evalCommitSha}^`], {
279280
cwd: projectPath,
280281
stdio: ['ignore', 'pipe', 'pipe'],

0 commit comments

Comments
 (0)