diff --git a/ci/bamboo/check-style.sh b/ci/bamboo/check-style.sh index 12c494abc1..6ddf47f621 100755 --- a/ci/bamboo/check-style.sh +++ b/ci/bamboo/check-style.sh @@ -22,12 +22,12 @@ set -o errexit -if git clang-format --diff -- | grep -q '^diff' +if git clang-format --diff master | grep -q '^diff' then - echo "ERROR: Code changes do not comply with the clang-format rules." + echo "ERROR: Code changes do not comply with numenta's code style rules." echo "Please run 'git clang-format' before commit." + git clang-format --diff master exit 1 fi - exit 0