File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,10 @@ jobs:
141
141
VERSION=$(python -c "from info import __version__; print(__version__)")
142
142
cd ..
143
143
if ! [[ $CIRCLE_BRANCH = 'master' ]]
144
- then if [[ $CIRCLE_BRANCH = 'develop' || ${CIRCLE_BRANCH:0:7} = 'hotfix/' ]]
145
- then REBASE_BASE_BRANCH=master
146
- else REBASE_BASE_BRANCH=develop
147
- fi
148
- GIT_SEQUENCE_EDITOR=dev/circleci_data/drop_version_bump_commits git rebase -X ours -i origin/$REBASE_BASE_BRANCH --empty drop
144
+ then
145
+ git fetch --all
146
+ REBASE_BASE=$(git merge-base --fork-point HEAD)
147
+ GIT_SEQUENCE_EDITOR=dev/circleci_data/drop_version_bump_commits git rebase -X ours -i $REBASE_BASE --empty drop
149
148
fi
150
149
echo "v${VERSION}" > version
151
150
sed -i -r "s/^(# [Vv]ersion ).*$/# Version ${VERSION}/g" dev/docker_data/default_pipeline.yml
You can’t perform that action at this time.
0 commit comments