if [ "${base_sha}" = "${head_sha}" ] && [ ! "${before_sha}" = "${none_sha}" ] && git cat-file -e "${before_sha}" 2>/dev/null; then
base_sha="${before_sha}"
fi
# Validate commits range
-|
set +x
echo ' '
echo '---'
echo -e "\033[0m\033[1mINFO: Commitizen checks from \033[1;33m'${base_branch}' \033[0m\033[1m(\033[1;36m${base_sha}\033[0m\033[1m) to \033[1;36m'${head_sha}'\033[0m"