'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.'

def get_url_rev(self):

    if (not ('://' in self.url)):
        assert (not ('file:' in self.url))
        self.url = self.url.replace('git+', 'git+ssh://')
        (url, rev) = super(Git, self).get_url_rev()
        url = url.replace('ssh://', '')
    else:
        (url, rev) = super(Git, self).get_url_rev()
    return (url, rev)
