If I do that I risk breaking plain HTTP repositories, which are the most frequent case.

I can add a validation function for the repository protocol, though.