Skip to content

Commit

Permalink
vx: recover from missing stable branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Sep 25, 2023
1 parent 828085b commit cbd27ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vx/scripts/release/steps/push_to_latest_branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ git config --global user.name $GIT_NAME


echo "Fetching stable for reference"
git fetch https://$PUBLIC_REPO_TOKEN@github.com/$GITHUB_REPOSITORY.git $STABLE_BRANCH
git fetch https://$PUBLIC_REPO_TOKEN@github.com/$GITHUB_REPOSITORY.git $STABLE_BRANCH || echo "Stable branch doesn't exist"

echo "Rebasing hotfixes"
git rebase $STABLE_BRANCH
git rebase $STABLE_BRANCH || echo "No hotfixes to rebase"

echo "Deleting local stable branch"
git branch -D $STABLE_BRANCH || echo "Failed to delete $STABLE_BRANCH. Continuing..."
Expand Down

0 comments on commit cbd27ad

Please sign in to comment.