Can't clone git repositories that share a URL with gitweb

Number:rdar://FB9048731 Date Originated:2021-03-19
Status:Open Resolved:
Product:Xcode Product Version:12.4 (12D4e)
Classification:Incorrect/Unexpected Behavior Reproducible:
Trying to use Xcode to clone a repository or add a package dependency from my own site results in an alert saying “An unknown error occurred.” with the detail text “HTTP parser error: success (-1)”.


The URL in question points to a gitweb site that can also be cloned directly (confirm with `git ls-remote`). Instructions for how to set up a similar site are at

A similar set up using nginx instead of Apache also fails with the same error:

Using HTTP instead of HTTPS does not change the result.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!