Run commit checkers in CI

71b73249a30d589c97e15b387d4a18e8e6b795a9 Made the change that
format-code is only run on repos that have the appropriate files.
Because commit messages don't have a "file" in the normal sense,
.git/COMMIT_EDITMSG was used instead.  While this buffer file contains
the last commit message that was written, it only works on repos that
have had a commit done on them.  For developers, this gives the expected
result, where commit message tools are run.  For CI, where the repos
never had a commit message interaction, this leads to the commit message
runners never being run.

This commit moves the file check to .git (ie, that this is a git repo)
which should match everything.  This was arguably better than adding a
"run all the time" mechanism specific to commit messages.

Tested:
Removing .git/COMMIT_EDITMSG on master and running a build shows commit
checks not run when run against master.

Running format-code.sh against this patch now shows commit tools run in
all cases.

Signed-off-by: Ed Tanous <ed@tanous.net>
Change-Id: Ia596689b2ba220fc1dd17b713143ffc3fc96364f
1 file changed