mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Rename default branch of complement.sh to main (#12063)
The complement.sh script relies on the name of the ref matching the name of the unpacked folder. The branch redirect from renaming the default branch breaks that assumption. Signed-off-by: Nicolas Werner <n.werner@famedly.com>
This commit is contained in:
parent
e3fe6347be
commit
c1ac2a8135
1
changelog.d/12063.misc
Normal file
1
changelog.d/12063.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix using the complement.sh script without specifying a dir or a branch. Contributed by Nico on behalf of Famedly.
|
@ -5,7 +5,7 @@
|
|||||||
# It makes a Synapse image which represents the current checkout,
|
# It makes a Synapse image which represents the current checkout,
|
||||||
# builds a synapse-complement image on top, then runs tests with it.
|
# builds a synapse-complement image on top, then runs tests with it.
|
||||||
#
|
#
|
||||||
# By default the script will fetch the latest Complement master branch and
|
# By default the script will fetch the latest Complement main branch and
|
||||||
# run tests with that. This can be overridden to use a custom Complement
|
# run tests with that. This can be overridden to use a custom Complement
|
||||||
# checkout by setting the COMPLEMENT_DIR environment variable to the
|
# checkout by setting the COMPLEMENT_DIR environment variable to the
|
||||||
# filepath of a local Complement checkout or by setting the COMPLEMENT_REF
|
# filepath of a local Complement checkout or by setting the COMPLEMENT_REF
|
||||||
@ -32,7 +32,7 @@ cd "$(dirname $0)/.."
|
|||||||
|
|
||||||
# Check for a user-specified Complement checkout
|
# Check for a user-specified Complement checkout
|
||||||
if [[ -z "$COMPLEMENT_DIR" ]]; then
|
if [[ -z "$COMPLEMENT_DIR" ]]; then
|
||||||
COMPLEMENT_REF=${COMPLEMENT_REF:-master}
|
COMPLEMENT_REF=${COMPLEMENT_REF:-main}
|
||||||
echo "COMPLEMENT_DIR not set. Fetching Complement checkout from ${COMPLEMENT_REF}..."
|
echo "COMPLEMENT_DIR not set. Fetching Complement checkout from ${COMPLEMENT_REF}..."
|
||||||
wget -Nq https://github.com/matrix-org/complement/archive/${COMPLEMENT_REF}.tar.gz
|
wget -Nq https://github.com/matrix-org/complement/archive/${COMPLEMENT_REF}.tar.gz
|
||||||
tar -xzf ${COMPLEMENT_REF}.tar.gz
|
tar -xzf ${COMPLEMENT_REF}.tar.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user