Skip to content

Commit

Permalink
Merge pull request kata-containers#8322 from wainersm/git_helper-fix
Browse files Browse the repository at this point in the history
tests/git-helper: cancel any previous rebase left halfway
  • Loading branch information
studychao authored Oct 27, 2023
2 parents f5c17f8 + 0ce0abf commit b508091
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/git-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function add_kata_bot_info() {
function rebase_atop_of_the_latest_target_branch() {
if [ -n "${TARGET_BRANCH}" ]; then
echo "Rebasing atop of the latest ${TARGET_BRANCH}"
# Recover from any previous rebase left halfway
git rebase --abort 2> /dev/null || true
git rebase origin/${TARGET_BRANCH}
fi
}
Expand Down

0 comments on commit b508091

Please sign in to comment.