Skip to content

Commit

Permalink
Update openhands/resolver/issue_definitions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
neubig authored Jan 1, 2025
1 parent b119d60 commit c8062e8
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions openhands/resolver/issue_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,19 +747,6 @@ def guess_success(
"""Guess if the issue is fixed based on the history, issue description and git patch."""
last_message = history[-1].message
issues_context = json.dumps(issue.closing_issues, indent=4)
# If no git patch was provided, try to extract it from history
if git_patch is None:
for event in reversed(history):
# Look for git diff command output
if (
hasattr(event, 'content')
and event.content
and 'diff --git' in event.content
and isinstance(event, CmdOutputObservation)
and event.exit_code == 0
):
git_patch = event.content
break
success_list = []
explanation_list = []

Expand Down

0 comments on commit c8062e8

Please sign in to comment.