weishirongzhen1 / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

NoneType error for mirror repo, again #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version:
repo version v1.10.1
       (from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.17
       (from /usr/local/bin/repo)
git version 1.7.1
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5]

Environment: Ubuntu 10.10

What steps will reproduce the problem?
1. repo init -u https://android.googlesource.com/platform/manifest -b 
android-4.0.1_r1 --mirror

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "/home/blairp/shared/android/sdb/.repo/repo/main.py", line 385, in <module>
    _Main(sys.argv[1:])
  File "/home/blairp/shared/android/sdb/.repo/repo/main.py", line 365, in _Main
    result = repo._Run(argv) or 0
  File "/home/blairp/shared/android/sdb/.repo/repo/main.py", line 137, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/blairp/shared/android/sdb/.repo/repo/subcmds/init.py", line 320, in Execute
    self._LinkManifest(opt.manifest_name)
  File "/home/blairp/shared/android/sdb/.repo/repo/subcmds/init.py", line 208, in _LinkManifest
    self.manifest.Link(name)
  File "/home/blairp/shared/android/sdb/.repo/repo/manifest_xml.py", line 109, in Link
    self.Override(name)
  File "/home/blairp/shared/android/sdb/.repo/repo/manifest_xml.py", line 102, in Override
    self._Load()
  File "/home/blairp/shared/android/sdb/.repo/repo/manifest_xml.py", line 301, in _Load
    self._AddMetaProjectMirror(self.repoProject)
  File "/home/blairp/shared/android/sdb/.repo/repo/manifest_xml.py", line 435, in _AddMetaProjectMirror
    remote = _XmlRemote('origin', m_url[:s], manifestUrl)
  File "/home/blairp/shared/android/sdb/.repo/repo/manifest_xml.py", line 53, in __init__
    self.resolvedFetchUrl = self._resolveFetchUrl()
  File "/home/blairp/shared/android/sdb/.repo/repo/manifest_xml.py", line 57, in _resolveFetchUrl
    manifestUrl = self.manifestUrl.rstrip('/')
AttributeError: 'NoneType' object has no attribute 'rstrip'

Please provide any additional information below.

I reported a similar problem occurred before, issue #78, which was fixed the 
day I reported it (thanks!).

Original issue reported on code.google.com by blai...@gmail.com on 2 Aug 2012 at 7:12

GoogleCodeExporter commented 9 years ago
Fixed in 1.10.2. Thanks again!

Original comment by blai...@gmail.com on 2 Aug 2012 at 10:10

GoogleCodeExporter commented 9 years ago
I guess this can be closed...

Original comment by david.pu...@sonymobile.com on 22 Nov 2012 at 10:42

GoogleCodeExporter commented 9 years ago

Original comment by david.pu...@sonymobile.com on 14 Feb 2013 at 8:39