itsmiru / git-repo

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

remote alias breaks 'repo manifest' command #219

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. Assign remote an alias attribute, 'origin' for example
2. run 'repo manifest'

Traceback (most recent call last):
  File "/foo/.repo/repo/main.py", line 531, in <module>
    _Main(sys.argv[1:])
  File "/foo/.repo/repo/main.py", line 507, in _Main
    result = repo._Run(argv) or 0
  File "/foo/.repo/repo/main.py", line 180, in _Run
    result = cmd.Execute(copts, cargs)
  File "/foo/.repo/repo/subcmds/manifest.py", line 80, in Execu
    self._Output(opt)
  File "/foo/.repo/repo/subcmds/manifest.py", line 70, in _Outp
    peg_rev_upstream = opt.peg_rev_upstream)
  File "/foo/.repo/repo/manifest_xml.py", line 319, in Save
    output_projects(None, root, list(sorted(projects)))
  File "/foo/.repo/repo/manifest_xml.py", line 233, in output_p
    output_project(parent, parent_node, project)
  File "/foo/.repo/repo/manifest_xml.py", line 270, in output_p
    revision = self.remotes[remoteName].revision or d.revisionExpr
KeyError: u'origin'

Original issue reported on code.google.com by al...@google.com on 30 Mar 2016 at 9:18

GoogleCodeExporter commented 8 years ago
git-blame suggests this patch: https://gerrit-review.googlesource.com/#/c/56855/

Original comment by al...@google.com on 30 Mar 2016 at 9:21