docs: def strip_project_url(url):
      """strip proto:// | openstack/ prefixes and .git | -distgit suffixes"""
      m = re.match(r'(?:[^:]+://)?(.*)', url)
      if m:
          url = m.group(1)
      if url.endswith('.git'):
          url, _, _ = url.rpartition('.')
      if url.endswith('-distgit'):
          url, _, _ = url.rpartition('-')
      if url.startswith('openstack/'):
          # openstack is always special :-p
          _, _, url = url.partition('/')
      return url