Fr4ncky / 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 #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: 1.10
Environment: Ubuntu 10.10

What steps will reproduce the problem?
1. repo init --mirror -u git://android.git.kernel.org/platform/manifest.git

Repo sync for an existing mirror also fails with the same error.

Command fails with the following traceback:

Traceback (most recent call last):
  File "/projects/ad_scratch/blairp/mydroid/.repo/repo/main.py", line 238, in <module>
    _Main(sys.argv[1:])
  File "/projects/ad_scratch/blairp/mydroid/.repo/repo/main.py", line 220, in _Main
    repo._Run(argv)
  File "/projects/ad_scratch/blairp/mydroid/.repo/repo/main.py", line 125, in _Run
    cmd.Execute(copts, cargs)
  File "/projects/ad_scratch/blairp/mydroid/.repo/repo/subcmds/init.py", line 232, in Execute
    self._LinkManifest(opt.manifest_name)
  File "/projects/ad_scratch/blairp/mydroid/.repo/repo/subcmds/init.py", line 157, in _LinkManifest
    self.manifest.Link(name)
  File "/projects/ad_scratch/blairp/mydroid/.repo/repo/manifest_xml.py", line 86, in Link
    self.Override(name)
  File "/projects/ad_scratch/blairp/mydroid/.repo/repo/manifest_xml.py", line 79, in Override
    self._Load()
  File "/projects/ad_scratch/blairp/mydroid/.repo/repo/manifest_xml.py", line 222, in _Load
    self._ParseManifest(True)
  File "/projects/ad_scratch/blairp/mydroid/.repo/repo/manifest_xml.py", line 300, in _ParseManifest
    project = self._ParseProject(node)
  File "/projects/ad_scratch/blairp/mydroid/.repo/repo/manifest_xml.py", line 448, in _ParseProject
    revisionId = None)
  File "/projects/ad_scratch/blairp/mydroid/.repo/repo/project.py", line 240, in __init__
    self.worktree = worktree.replace('\\', '/')
AttributeError: 'NoneType' object has no attribute 'replace'

Original issue reported on code.google.com by blai...@gmail.com on 10 Jan 2011 at 8:25