I tried creating a Repository in Diffusion and adding a URI that contains underscore to it fails with the error
The URI protocol is unrecognized. It should begin with "ssh://", "http://", "https://", "git://", "svn://", "svn+ssh://", or be in the form "email@example.com:path".
The URI I tried to add is
I then went into the source code and fount out that
PhutilURI::getProtocol() silently fails here returning an empty string for any URI that contains an underscore in the subdomain part.
Are there any quick workarounds here, please?
- Create a Repository in Diffusion
- Add a URI for the repository like
phabricator: 3c432225251303558de0dae903656d6159f2bf47 (Sat, Jul 6)
arcanist: d92fa96366c0ed50e4257508148aa75192d4fb1f (Fri, Jun 21)
phutil: b416093386a225b1d9a2de906899b94cbf4babcb (Tue, Jul 9)