安装repo工具:
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
修改URL:REPO_URL = 'https://gerrit-google.tuna.tsinghua.edu.cn/git-repo'
下面repo init时出现问题:
$ repo init -u git://192.168.0.185/lollipop-x86/manifest -b oto-ota
Traceback (most recent call last):
  File "/usr/bin/repo", line 860, in <module>
    main(sys.argv[1:])
  File "/usr/bin/repo", line 828, in main
    _Init(args, gitc_init=(cmd == 'gitc-init'))
  File "/usr/bin/repo", line 334, in _Init
    _Clone(url, dst, opt.quiet)
  File "/usr/bin/repo", line 594, in _Clone
    if _DownloadBundle(url, local, quiet):
  File "/usr/bin/repo", line 534, in _DownloadBundle
    r = urllib.request.urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
    context=self._context)
  File "/usr/lib/python2.7/urllib2.py", line 1195, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.7/httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 897, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 859, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 1278, in connect
    server_hostname=server_hostname)
  File "/usr/lib/python2.7/ssl.py", line 353, in wrap_socket
    _context=self)
  File "/usr/lib/python2.7/ssl.py", line 601, in __init__
    self.do_handshake()
  File "/usr/lib/python2.7/ssl.py", line 838, in do_handshake
    match_hostname(self.getpeercert(), self.server_hostname)
  File "/usr/lib/python2.7/ssl.py", line 272, in match_hostname
    % (hostname, ', '.join(map(repr, dnsnames))))
ssl.CertificateError: hostname 'gerrit-google.tuna.tsinghua.edu.cn' doesn't 
match either of 'aosp.tuna.tsinghua.edu.cn', 'aur.tuna.tsinghua.edu.cn', 
'mirror.tuna.tsinghua.edu.cn', 'mirrors-i.tuna.tsinghua.edu.cn', 
'mirrors.tuna.tsinghua.edu.cn', 'mirrors4.tuna.tsinghua.edu.cn', 
'mirrors6.tuna.tsinghua.edu.cn', 'pypi.tuna.tsinghua.edu.cn'

能帮忙看一下是mirror的问题吗?
我使用网上另外的版本不会出现该问题:
curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo";> ~/bin/

thanks.

-- 

--- 
You received this message because you are subscribed to the Google Groups "TUNA 
主邮件列表" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

回复