diff options
author | David Bradford <david.bradford@mongodb.com> | 2019-12-27 21:26:37 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-12-27 21:26:37 +0000 |
commit | a6f33b20fdb2b950f7111f7cc679f0f52c59e606 (patch) | |
tree | 29a2bb044d7391d43e131c95e6c83377005480b9 /etc | |
parent | 47a605826a64d55ff23427deab6f29c5999d1103 (diff) | |
download | mongo-a6f33b20fdb2b950f7111f7cc679f0f52c59e606.tar.gz |
SERVER-45313: Handle special characters in validate_commit_message
Diffstat (limited to 'etc')
-rw-r--r-- | etc/evergreen.yml | 11 |
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 |