the stable version can now be found in the stable branch (#4129)

fixes #4127
This commit is contained in:
Michael Stapelberg 2020-06-15 12:00:24 +02:00 committed by GitHub
parent cf09cc790c
commit 4085c4be3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 10 deletions

View File

@ -75,11 +75,9 @@ you could have a look at previous reviews and see what the common mistakes are.
=== Which branch to use?
Work on i3 generally happens in two branches: “master” and “next” (the latter
being the default branch, the one that people get when they check out the git
repository).
Work on i3 generally happens in two branches: “next” (default) and “stable”.
The contents of “master” are always stable. That is, it contains the source code
The contents of “stable” are always stable. That is, it contains the source code
of the latest release, plus any bugfixes that were applied since that release.
New features are only found in the “next” branch. Always use this branch when

View File

@ -75,23 +75,23 @@ echo "${RELEASE_VERSION}-non-git" > I3_VERSION
git add I3_VERSION
git commit -a -m "Set non-git version to ${RELEASE_VERSION}-non-git."
if [ "${RELEASE_BRANCH}" = "master" ]; then
git checkout master
if [ "${RELEASE_BRANCH}" = "stable" ]; then
git checkout stable
git merge --no-ff release-${RELEASE_VERSION} -m "Merge branch 'release-${RELEASE_VERSION}'"
git checkout next
git merge --no-ff -s recursive -X ours -X no-renames master -m "Merge branch 'master' into next"
git merge --no-ff -s recursive -X ours -X no-renames stable -m "Merge branch 'stable' into next"
else
git checkout next
git merge --no-ff release-${RELEASE_VERSION} -m "Merge branch 'release-${RELEASE_VERSION}'"
git checkout master
git merge --no-ff -s recursive -X theirs -X no-renames next -m "Merge branch 'next' into master"
git checkout stable
git merge --no-ff -s recursive -X theirs -X no-renames next -m "Merge branch 'next' into stable"
fi
git remote remove origin
git remote add origin git@github.com:i3/i3.git
git config --add remote.origin.push "+refs/tags/*:refs/tags/*"
git config --add remote.origin.push "+refs/heads/next:refs/heads/next"
git config --add remote.origin.push "+refs/heads/master:refs/heads/master"
git config --add remote.origin.push "+refs/heads/stable:refs/heads/stable"
################################################################################
# Section 2: Debian packaging