mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-20 16:27:52 +00:00
Merge pull request #8322 from wainersm/git_helper-fix
tests/git-helper: cancel any previous rebase left halfway
This commit is contained in:
@@ -19,6 +19,8 @@ function add_kata_bot_info() {
|
|||||||
function rebase_atop_of_the_latest_target_branch() {
|
function rebase_atop_of_the_latest_target_branch() {
|
||||||
if [ -n "${TARGET_BRANCH}" ]; then
|
if [ -n "${TARGET_BRANCH}" ]; then
|
||||||
echo "Rebasing atop of the latest ${TARGET_BRANCH}"
|
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}
|
git rebase origin/${TARGET_BRANCH}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user