Skip to content

subrepo: fix normalizing paths with scheme

Felipe Resende requested to merge topic/stable/fix_subrepo_url into branch/stable

After revision 0afe96e374a7, subrepo paths were normalized using posixpath.normpath and that resulted in ssh paths being wrongly converted from ssh://host/path to ssh:/host/path

This fix applies the same logic used in urlutil.url to split the path scheme from the rest and only use posixpath.normpath to the string after scheme://

Merge request reports