#!/usr/bin/env bash

GIT_COMMIT_MSG=$(git log --format='%s' -n 1 $COMMIT_ID)
GIT_COMMIT_MSG_SAFE=$(printf "%q" "$GIT_COMMIT_MSG")
echo "##teamcity[setParameter name='env.COMMIT_MSG' value='$GIT_COMMIT_MSG_SAFE']"
