Skip to content

Commit

Permalink
Abort correctly by calling abort_cherry_pick() (GH-13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariatta authored Sep 6, 2017
1 parent 2c58f9b commit ee4fb87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backport/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def backport_task(commit_hash, branch, *, issue_number, created_by, merged_by):
util.comment_on_pr(issue_number,
f"Sorry @{created_by} and @{merged_by}, I had trouble checking out the backport branch."
"Please backport using [cherry_picker](https://pypi.org/project/cherry-picker/) on command line.")
cp.abort()
cp.abort_cherry_pick()
except cherry_picker.CherryPickException:
util.comment_on_pr(issue_number,
f"Sorry, @{created_by} and @{merged_by}, I could not cleanly backport this PR due to a conflict."
"Please backport using [cherry_picker](https://pypi.org/project/cherry-picker/) on command line.")
cp.abort()
f"""Sorry, @{created_by} and @{merged_by}, I could not cleanly backport this PR due to a conflict.
Please backport using [cherry_picker](https://pypi.org/project/cherry-picker/) on command line.""")
cp.abort_cherry_pick()

0 comments on commit ee4fb87

Please sign in to comment.