Skip to content

Commit c8e5848

Browse files
fix git diff TIMEOUT problem in swe_bench evaluation (OpenHands#2828)
* fix git diff TIMEOUT problem in swe_bench evaluation * fix git diff TIMEOUT problem in swe_bench evaluation * Update evaluation/swe_bench/swe_env_box.py Co-authored-by: மனோஜ்குமார் பழனிச்சாமி <[email protected]> --------- Co-authored-by: மனோஜ்குமார் பழனிச்சாமி <[email protected]>
1 parent 0973e31 commit c8e5848

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

evaluation/swe_bench/swe_env_box.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ def get_diff_patch(self):
137137
logger.error('Failed to cd to the repo')
138138
return ''
139139

140+
exit_code, _output = self.execute('git config --global core.pager ""')
141+
if exit_code != 0:
142+
logger.error('Failed to change git config')
143+
return ''
144+
140145
# add everything to the index
141146
exit_code, output = self.execute('git add -A')
142147
if exit_code != 0:

0 commit comments

Comments
 (0)