<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/84340>84340</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
git-clang-format fails on Windows if path contains spaces
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
psnsilva
</td>
</tr>
</table>
<pre>
`git-clang-format` fails if ran from a directory whose path contain spaces:
```powershell
py -3 \Program Files\LLVM\bin\git-clang-format --binary=clang-format --style=file protocol_logic.c
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\python3.12.exe: can't open file 'C:\\Program': [Errno 2] No such file or directory
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkksGO2ywQx59mfEG2CJgkPviQTT6f9qtWqtQeI4zHNi1hXMCbTZ--shNp210JgWBmmP_M_HSMdvCINagnUKdMz2mkUE_RR-teddZSd6thywebcuO0H_KewkUn2HLWa-sisz0L2rM-0IVp1tmAJlG4setIEdmk08gM-aStZ3HSBiPIA_AT8ANs-X1NdMUQR3TubphuLJcM1PEl0BD0hTXWYQR1fH7-9j-oY2s9qONHSSzPW-t1uIE8fXiP6eYQ5Km3DtkUKJEhd3Y0WFOYe87jIutzxu_Wd3SNh2labi-3NJL_Sn266oANzb7TyZIv7oZCFhtxXrZip0TBz2_b8nz-1f5WXvzsg95PHNRxWn1XL3xDkAdmtAexS4wm9GzVCGL3EPSuCcRucQb19F8InpgAdWJfiMXZjPcoCu_9_9DirKtlV8lKZ1hvdrzai0ryMhvrSqJpN3LftaWUskctKoNSVqbbq2rLu8zWgouSS77bbGWpqgKrsmsFYq-qDXZcQMnxoq0rnHu9FBSGzMY4Y70vZckzp1t0ccVLiH8IEksBWaiXsLydhwgldzam-P5Rsslh_WnQd_DIs8d0Fgb_Bi0-SMvm4OoxpWllTjQgmsGmcW4LQxcQzZLnceRToB9oEohmVR9BNGsBfwIAAP__-W8Cpg">