def get_url_rev_and_auth(self, url):
if '<STR_LIT>' not in url:<EOL><INDENT>assert '<STR_LIT>' not in url<EOL>url = url.replace('<STR_LIT>', '<STR_LIT>')<EOL>url, rev, user_pass = super(Git, self).get_url_rev_and_auth(url)<EOL>url = url.replace('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>url, rev, user_pass = super(Git, self).get_url_rev_and_auth(url)<EOL><DEDENT>return url, rev, user_pass<EOL>
Prefixes stub URLs like 'user@hostname:user/repo.git' with 'ssh://'.
That's required because although they use SSH they sometimes don't
work with a ssh:// scheme (e.g. GitHub). But we need a scheme for
parsing. Hence we remove it again afterwards and return it as a stub.