Tested with: arcanist: rARCa2ab38df78a9d111459fab8d0d63e74d811edf29 libphutil: rPHU4b44d03ba60c8a67f70a91cb11765b8b61f73598
Knowing what the problem is, the workaround is obvious (remove the relevant git config option).