bzr-git does not work in https vis-a-vis pycrypto.git
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Git Plugin |
New
|
Undecided
|
Unassigned |
Bug Description
This command:
bzr branch https:/
hangs for a few minutes, and eventually aborts with this error message:
bzr: ERROR: Invalid http response for https:/
The full traceback is below. Trying "git clone" with the same address on the same machine succeeds.
See also the discussion in the thread starting here:
https:/
Thu 2011-05-26 10:21:29 +0300
0.329 bazaar version: 2.3.3
0.329 bzr arguments: [u'-Dhttp', u'branch', u'https:/
0.439 looking for plugins in C:/Documents and Settings/
0.439 looking for plugins in C:/Program Files/Bazaar/
1.206 encoding stdout as sys.stdout encoding 'cp862'
1.253 failed to import pycurl: No module named pycurl
1.253 failed to instantiate transport <bzrlib.
1.786 bzr-svn: using Subversion 1.6.6 (), subvertpy 0.7.5
2.350 * About to connect() to github.com:443
4.684 > OPTIONS /dlitz/
4.684 > Host: github.com
> Accept: */*
> User-Agent: bzr/2.3.3 (urllib)
> Connection: Keep-Alive
> Pragma: no-cache
> Cache-Control: max-age=0
5.154 < HTTP/1.1 404 Not Found
5.154 < Server: nginx/0.7.67
< Date: Thu, 26 May 2011 07:20:02 GMT
< Content-Type: text/html; charset=utf-8
< Connection: keep-alive
< Status: 404 Not Found
< X-Runtime: 15ms
< Content-Length: 19315
< Set-Cookie: csrf_id=
< Set-Cookie: _gh_sess=
< Cache-Control: no-cache
5.185 > POST /dlitz/
5.185 > Content-Length: 6
> Connection: Keep-Alive
> Accept: */*
> User-Agent: bzr/2.3.3 (urllib)
> Host: github.com
> Pragma: no-cache
> Cache-Control: max-age=0
> Content-Type: application/
5.874 < HTTP/1.1 404 Not Found
5.874 < Server: nginx/0.7.67
< Date: Thu, 26 May 2011 07:20:03 GMT
< Content-Type: text/html; charset=utf-8
< Connection: keep-alive
< Status: 404 Not Found
< Content-Length: 19367
< Set-Cookie: csrf_id=
< Set-Cookie: _gh_sess=
< Cache-Control: no-cache
5.890 > GET /dlitz/
5.890 > Host: github.com
> Accept: */*
> User-Agent: bzr/2.3.3 (urllib)
> Connection: Keep-Alive
> Pragma: no-cache
> Cache-Control: max-age=0
6.219 < HTTP/1.1 404 Not Found
6.219 < Server: nginx/0.7.67
< Date: Thu, 26 May 2011 07:20:03 GMT
< Content-Type: text/html; charset=utf-8
< Connection: keep-alive
< Status: 404 Not Found
< Content-Length: 19362
< Set-Cookie: csrf_id=
< Set-Cookie: _gh_sess=
< Cache-Control: no-cache
6.219 > HEAD /dlitz/
6.219 > Host: github.com
> Accept: */*
> User-Agent: bzr/2.3.3 (urllib)
> Connection: Keep-Alive
> Pragma: no-cache
> Cache-Control: max-age=0
81.563 * About to connect() to github.com:443
82.174 > HEAD /dlitz/
82.174 > Host: github.com
> Accept: */*
> User-Agent: bzr/2.3.3 (urllib)
> Connection: Keep-Alive
> Pragma: no-cache
> Cache-Control: max-age=0
157.533 Transferred: 61kB (0.4kB/s r:60kB w:1kB)
157.533 Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "C:/Program Files/Bazaar/
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "urllib2.pyo", line 391, in open
File "urllib2.pyo", line 409, in _open
File "urllib2.pyo", line 369, in _call_chain
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "httplib.pyo", line 990, in getresponse
File "bzrlib\
File "httplib.pyo", line 391, in begin
File "httplib.pyo", line 369, in _read_status
InvalidHttpRe
157.533 return code 3
On Thu, 2011-05-26 at 17:34 +0000, Eli Zaretskii wrote: /github. com/dlitz/ pycrypto. git /github. com/dlitz/ pycrypto. git/info/ refs: Bad status line
> Public bug reported:
>
> This command:
>
> bzr branch https:/
>
> hangs for a few minutes, and eventually aborts with this error message:
>
> bzr: ERROR: Invalid http response for
> https:/
> received
github doesn't support "dumb" access to git repositories, it only
supports the smart server protocol but dulwich/bzr-git doesn't yet.
You can use git:// instead, which they also support.
this is a dupe, but I don't have the right bug # here (offline atm).
Cheers,
jelmer