Fr4ncky / git-repo

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

repo init -u <url> -b <branch> now crashes with a python AttributeError #151

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: 1.1.9
Environment:

What steps will reproduce the problem?
1. repo init -u git://xx/xx.git -b xxx

What is the expected output? What do you see instead?
I would expect it to get the manifest and do its things. Instead, it crashes 
with a python error. 

This worked until ~Sept 23rd or so, and I don't think any change on our side is 
responsible, unless updating our build servers with OS patches caused this. I 
can google and find other people with the same issue: 
http://e2e.ti.com/support/omap/f/885/p/292523/1021266.aspx

The fullish stack trace is below. I changed our internal information to xxx's. 

Please provide any additional information below.

$ repo init -u git://xx/xx.git -b xxx
[snip]

 * [new tag]         v1.9.6     -> v1.9.6

... A new repo command ( 1.20) is available.
... You should upgrade soon:

    cp /xxx/.repo/repo/repo /xx/bin/repo

Get git://xxx/xx.git
remote: Counting objects: 21, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 21 (delta 6), reused 0 (delta 0)
Unpacking objects: 100% (21/21), done.
From git://xxx/xx
 * [new branch]      xx      -> origin/xx
 * [new branch]      xx      -> origin/xx
 * [new branch]      x     -> origin/master
Traceback (most recent call last):
  File "/xxx/.repo/repo/main.py", line 418, in <module>
    _Main(sys.argv[1:])
  File "/xxx/.repo/repo/main.py", line 394, in _Main
    result = repo._Run(argv) or 0
  File "/xxx/.repo/repo/main.py", line 142, in _Run
    result = cmd.Execute(copts, cargs)
  File "/xxx/.repo/repo/subcmds/init.py", line 370, in Execute
    self._LinkManifest(opt.manifest_name)
  File "/xxx/.repo/repo/subcmds/init.py", line 239, in _LinkManifest
    self.manifest.Link(name)
  File "/xxx/.repo/repo/manifest_xml.py", line 133, in Link
    self.Override(name)
  File "/xxx/.repo/repo/manifest_xml.py", line 126, in Override
    self._Load()
  File "/xxx/.repo/repo/manifest_xml.py", line 359, in _Load
    self._ParseManifest(nodes)
  File "/xxx/.repo/repo/manifest_xml.py", line 460, in _ParseManifest
    project = self._ParseProject(node)
  File "/xxx/.repo/repo/manifest_xml.py", line 681, in _ParseProject
    dest_branch = node.getAttribute('dest-branch') or self._default.destBranchExpr
AttributeError: '_Default' object has no attribute 'destBranchExpr'

Original issue reported on code.google.com by kelly.sc...@gmail.com on 26 Sep 2013 at 5:50

GoogleCodeExporter commented 9 years ago
Also, it keeps saying 1.20 is available. Yet I don't see it available, nor do I 
see even a daily build/beta. It seems like using git repo links us to whatever 
you're changing online, and we can't stay with a static version. How do we 
protect ourselves from inadvertent breakages from the project?

Original comment by kelly.sc...@gmail.com on 26 Sep 2013 at 5:55

GoogleCodeExporter commented 9 years ago
I get it - 1.20 is in the pulldown. I copied it over and I'm now using 1.20, 
same issue. 

If you're going to put in a nag message about going to 1.20, you should also 
update your download links. Just sayin'. 

Original comment by kelly.sc...@gmail.com on 26 Sep 2013 at 5:59

GoogleCodeExporter commented 9 years ago
so how did you fix this?

Original comment by spc.hick...@gmail.com on 13 Oct 2013 at 11:19