def get_url_rev(self):
if not '<STR_LIT>' in self.url:<EOL><INDENT>assert not '<STR_LIT>' in self.url<EOL>self.url = self.url.replace('<STR_LIT>', '<STR_LIT>')<EOL>url, rev = super(Git, self).get_url_rev()<EOL>url = url.replace('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>url, rev = super(Git, self).get_url_rev()<EOL><DEDENT>return url, rev<EOL>
Prefixes stub URLs like 'user@hostname:user/repo.git' with 'ssh://'.
That's required because although they use SSH they sometimes doesn'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.