Skip to content

Commit d0811c8

Browse files
committed
🚀 Rebase to mergebase fork-point instead of 'master' or 'develop'
1 parent 5cd214c commit d0811c8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.circleci/config.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,10 @@ jobs:
141141
VERSION=$(python -c "from info import __version__; print(__version__)")
142142
cd ..
143143
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
149148
fi
150149
echo "v${VERSION}" > version
151150
sed -i -r "s/^(# [Vv]ersion ).*$/# Version ${VERSION}/g" dev/docker_data/default_pipeline.yml

0 commit comments

Comments
 (0)