Skip to content

Commit d27e643

Browse files
committed
Diff against parentSha in case of commit
1 parent 8ad2611 commit d27e643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evals/buffbench/agent-runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export async function runAgentOnCommit({
103103
cost = result.sessionState.mainAgentState.creditsUsed / 100
104104

105105
execSync('git add .', { cwd: repoDir, stdio: 'ignore' })
106-
diff = execSync('git diff HEAD', {
106+
diff = execSync(`git diff ${commit.parentSha}`, {
107107
cwd: repoDir,
108108
encoding: 'utf-8',
109109
})

0 commit comments

Comments
 (0)