Skip to content

Commit 49cecd9

Browse files
authored
Change branch name to main in SSDLC script. (#1552)
1 parent d0f6f0b commit 49cecd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.evergreen/ssdlc-report.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ declare -r EVERGREEN_BUILD_URL_PREFIX="https://spruce.mongodb.com/version"
4040
declare -r GIT_TAG="r${PRODUCT_VERSION}"
4141
GIT_COMMIT_HASH="$(git rev-list --ignore-missing -n 1 "${GIT_TAG}")"
4242
set +e
43-
GIT_BRANCH_MASTER="$(git branch -a --contains "${GIT_TAG}" | grep 'master$')"
43+
GIT_BRANCH_DEFAULT="$(git branch -a --contains "${GIT_TAG}" | grep 'main$')"
4444
GIT_BRANCH_PATCH="$(git branch -a --contains "${GIT_TAG}" | grep '\.x$')"
4545
set -e
46-
if [ -n "${GIT_BRANCH_MASTER}" ]; then
46+
if [ -n "${GIT_BRANCH_DEFAULT}" ]; then
4747
declare -r EVERGREEN_BUILD_URL="${EVERGREEN_BUILD_URL_PREFIX}/${EVERGREEN_PROJECT_NAME_PREFIX}_${GIT_COMMIT_HASH}"
4848
elif [ -n "${GIT_BRANCH_PATCH}" ]; then
4949
# strip out the patch version

0 commit comments

Comments
 (0)