Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions openshift/e2e-openstack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ echo "Running e2e-openstack.sh"
unset GOFLAGS
tmp="$(mktemp -d)"

if [ "${PULL_BASE_REF}" == "master" ]; then
# the default branch for cluster-api-provider-openstack is main.
CAPO_BASE_REF="main"
else
CAPO_BASE_REF=$PULL_BASE_REF
fi
# Default branch for both CAPO and this repo should be `main`.
CAPO_BASE_REF=$PULL_BASE_REF

echo "cloning github.com/openshift/cluster-api-provider-openstack at branch '$CAPO_BASE_REF'"
git clone --single-branch --branch="$CAPO_BASE_REF" --depth=1 "https://github.com/openshift/cluster-api-provider-openstack.git" "$tmp"
Expand Down
8 changes: 2 additions & 6 deletions openshift/e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ echo "Running e2e-tests.sh"
unset GOFLAGS
tmp="$(mktemp -d)"

if [ "${PULL_BASE_REF}" == "master" ]; then
# the default branch for cluster-capi-operator is main.
CCAPIO_BASE_REF="main"
else
CCAPIO_BASE_REF=$PULL_BASE_REF
fi
# Default branch for both CCAPIO and this repo should be `main`.
CCAPIO_BASE_REF=$PULL_BASE_REF

echo "cloning github.com/openshift/cluster-capi-operator at branch '$CCAPIO_BASE_REF'"
git clone --single-branch --branch="$CCAPIO_BASE_REF" --depth=1 "https://github.com/openshift/cluster-capi-operator.git" "$tmp"
Expand Down