Skip when not in a git repo
Previously this must have failed silently as the current clang-format doesn't like -i and no files in a terminal, was probably OK in a non-interactive environment
Previously this must have failed silently as the current clang-format doesn't like -i and no files in a terminal, was probably OK in a non-interactive environment