title: git check-format can't find path specificed
body: <p>Hello and thanks for the help</p>
  <p>Msys64 on Windows 10 platform</p>
  <p>I am new to git. I am contributing to Kicad and this requires clang-format. I followed the instructions here <a href="https://dev-docs.kicad.org/en/rules-guidelines/code-style/" rel="nofollow noreferrer">https://dev-docs.kicad.org/en/rules-guidelines/code-style/</a> and I get no complaints.</p>
  <p>However, when I run the suggested line</p>
  <p>git check-format</p>
  <p>I get &quot;no modified files to format&quot; if I run it after git commit</p>
  <p>or</p>
  <p>Traceback (most recent call last):
  File &quot;C:/msys64/mingw64/bin/git-clang-format&quot;, line 579, in  main()</p>
  <p>File &quot;C:/msys64/mingw64/bin/git-clang-format&quot;, line 154, in main cd_to_toplevel()</p>
  <p>File &quot;C:/msys64/mingw64/bin/git-clang-format&quot;, line 336, in os.chdir(toplevel)</p>
  <p>FileNotFoundError: [WinError 3] The system cannot find the path specified: '/home/bjpic/brian_renum/kicad'</p>
  <p>If I run it before git commit. I assume the &quot;cannot find the path&quot; error is because it is actually trying to do something but I have no idea how to fix this.</p>
  <p>Thanks again.</p>