Skip to content

Commit

Permalink
Ensure we clean the repo before attempting to cherry-pick (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal authored Jul 22, 2023
1 parent 1b86818 commit 93e2498
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions miss_islington/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ async def backport_task_asyncio(
""",
)
await util.assign_pr_to_core_dev(gh, issue_number, merged_by)

# Ensure that we don't have any changes lying around
subprocess.check_output(['git', 'reset', '--hard'])
subprocess.check_output(['git', 'clean', '-fxd'])

cp = cherry_picker.CherryPicker(
"origin",
commit_hash,
Expand Down

0 comments on commit 93e2498

Please sign in to comment.