golang/gddo

can't redirect with protocol ssh

Bren2010 opened this issue · 0 comments

If a go-import-redirector provides something like

<meta name="go-import" content="code.host.com/path/to/repo git ssh://git@source-repo.com/path/to/repo">

the documentation will fail to load with error

ERROR: bad path from meta: ssh://git@source-repo.com/path/to/repo code.host.com/path/to/repo

This bug looks like it was introduced by daffe1f because git@source-repo.com isn't a valid host.