I am using following command to sync 'android-4.0.1_r1' branch from
source.android.com site.
1)repo init -u https://android.googlesource.com/platform/manifest -b
android-4.0.1_r1 --mirror
2) repo sync
In some certain stage i'm getting following error also it fails to
sync the code.
ERROR:--
Initializing project platform/abi/cpp ...
fatal: '../platform/abi/cpp.git' does not appear to be a git
repository
fatal: The remote end hung up unexpectedly
error: Cannot fetch platform/abi/cpp
Seems to be cpp.git repo is not available on google server. please any
give me some alternative solution to sync this code base.
-Suganesh V
You need to upgrade your version of the repo script. Please review the
source code download instructions again. Pay special attention to this
part:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo >
~/bin/repo
$ chmod a+x ~/bin/repo
http://source.android.com/source/downloading.html
--
Magnus Bäck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson
gitz01> repo init -u https://android.googlesource.com/platform/manifest
-b android-4.0.1_r1
Traceback (most recent call last):
File "/home/suganesh/bin/repo", line 685, in ?
main(sys.argv[1:])
File "/home/suganesh/bin/repo", line 652, in main
_Init(args)
File "/home/suganesh/bin/repo", line 192, in _Init
_Clone(url, dst, opt.quiet)
File "/home/suganesh/bin/repo", line 431, in _Clone
if _DownloadBundle(url, local, quiet):
File "/home/suganesh/bin/repo", line 370, in _DownloadBundle
r = urllib2.urlopen(url)
File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
File "/usr/lib/python2.4/urllib2.py", line 573, in <lambda>
lambda r, proxy=url, type=type, meth=self.proxy_open: \
File "/usr/lib/python2.4/urllib2.py", line 597, in proxy_open
return self.parent.open(req)
File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
File "/usr/lib/python2.4/urllib2.py", line 1032, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.4/urllib2.py", line 1004, in do_open
r = h.getresponse()
File "/usr/lib/python2.4/httplib.py", line 872, in getresponse
response.begin()
File "/usr/lib/python2.4/httplib.py", line 336, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.4/httplib.py", line 300, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine
On Nov 22, 6:18 pm, Magnus Bäck <magnus.b...@sonyericsson.com> wrote:
> On Tuesday, November 22, 2011 at 14:01 CET,
> suganesh <sugnes...@gmail.com> wrote:
>
>
>
> > I am using following command to sync 'android-4.0.1_r1' branch from
> > source.android.com site.
>
> > 1)repo init -uhttps://android.googlesource.com/platform/manifest-b
> > android-4.0.1_r1 --mirror
> > 2) repo sync
>
> > In some certain stage i'm getting following error also it fails to
> > sync the code.
>
> > ERROR:--
>
> > Initializing project platform/abi/cpp ...
> > fatal: '../platform/abi/cpp.git' does not appear to be a git
> > repository
> > fatal: The remote end hung up unexpectedly
> > error: Cannot fetch platform/abi/cpp
>
> > Seems to be cpp.git repo is not available on google server. please any
> > give me some alternative solution to sync this code base.
>
> You need to upgrade your version of the repo script. Please review the
> source code download instructions again. Pay special attention to this
> part:
>
> $ curlhttps://dl-ssl.google.com/dl/googlesource/git-repo/repo>
Do you need to use an HTTP proxy server to reach external sites? This
error is because
https://android.googlesource.com/tools/repo/clone.bundle returned an
invalid HTTP response that the Python library cannot understand. I
doubt the problem is with the android.googlesource.com servers, which
makes me think there is some sort of proxy in the way that is blocking
or mangling the reply, making it impossible for Python to read.
I had done two things , upgraded my repo version and removed that
culprit proxy from my sever.
Now i could be able to sync ICE code base without any hamper.
Thanks Shawn .
-Suganesh V
System Engineer
Sasken Communication Technologies.
On Nov 24, 12:56 am, Shawn Pearce <s...@google.com> wrote:
> On Tue, Nov 22, 2011 at 21:16, suganesh <sugnes...@gmail.com> wrote:
> > Thanks for your suggestion Magnus.
> > Now i am struck up with upgraded repo script error.
>
> > gitz01> repo init -uhttps://android.googlesource.com/platform/manifest
> > -b android-4.0.1_r1
> > Traceback (most recent call last):
> ...
> > r = urllib2.urlopen(url)
> ...
> > File "/usr/lib/python2.4/httplib.py", line 300, in _read_status
> > raise BadStatusLine(line)
> > httplib.BadStatusLine
>
> Do you need to use an HTTP proxy server to reach external sites? This
> error is becausehttps://android.googlesource.com/tools/repo/clone.bundlereturned an
If you have a standard HTTP proxy server available, you may have been
able to set the http_proxy (yes all lowercase) environment variable to
the host:port of your proxy server, e.g:
export http_proxy=proxy.mycompany.com:4981
repo and Git should both honor this setting, perhaps making it easier
for you to keep current.
On Nov 25, 4:34 am, Shawn Pearce <s...@google.com> wrote:
Don't forget https_proxy too