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

Originator:jediknil
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)”.

URL: https://belkadan.com/source/Suffusion

The URL in question points to a gitweb site that can also be cloned directly (confirm with `git ls-remote https://belkadan.com/source/Suffusion`). Instructions for how to set up a similar site are at https://belkadan.com/blog/2020/01/Gitweb-on-Shared-Hosting/.

A similar set up using nginx instead of Apache also fails with the same error: https://git.witchoflight.com/jade-rose

Using HTTP instead of HTTPS does not change the result.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!