summaryrefslogtreecommitdiff
path: root/etc/evergreen.yml
diff options
context:
space:
mode:
Diffstat (limited to 'etc/evergreen.yml')
-rw-r--r--etc/evergreen.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 6d4650258d1..0e717fb3966 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -8206,8 +8206,17 @@ tasks:
set -o verbose
set -o errexit
if [ "${is_commit_queue}" = "true" ]; then
+ # Since `commit_message` is an evergreen expansion, we need a way to ensure we
+ # properly deal with any special characters that could cause issues (like "). To
+ # do this, we will write it out to a file, then read that file into a variable.
+ cat > commit_message.txt <<END_OF_COMMIT_MSG
+ ${commit_message}
+ END_OF_COMMIT_MSG
+
+ commit_message_content=$(cat commit_message.txt)
+
${activate_virtualenv}
- $python buildscripts/validate_commit_message.py "${commit_message}"
+ $python buildscripts/validate_commit_message.py "$commit_message_content"
fi