mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
fix git diff TIMEOUT problem in swe_bench evaluation (#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: மனோஜ்குமார் பழனிச்சாமி <smartmanoj42857@gmail.com> --------- Co-authored-by: மனோஜ்குமார் பழனிச்சாமி <smartmanoj42857@gmail.com>
This commit is contained in:
parent
0973e31f00
commit
c8e5848add
@ -137,6 +137,11 @@ class SWEBenchSSHBox(DockerSSHBox):
|
||||
logger.error('Failed to cd to the repo')
|
||||
return ''
|
||||
|
||||
exit_code, _output = self.execute('git config --global core.pager ""')
|
||||
if exit_code != 0:
|
||||
logger.error('Failed to change git config')
|
||||
return ''
|
||||
|
||||
# add everything to the index
|
||||
exit_code, output = self.execute('git add -A')
|
||||
if exit_code != 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user