martinjina / git-repo

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

remote alias breaks 'manifest -r' #181

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Affected Version:1.12.16
Environment:Ubuntu Linux

What steps will reproduce the problem?
1. Give two different remotes the same alias 'origin'
2. run 'repo manifest -r'

What is the expected output? What do you see instead?
The project element has a remote of "origin" which is the remote's alias.  I 
expected it to output the remote's name (which is guaranteed to be unique).  
Because there are two remotes with the same alias, the output of 'repo manifest 
-r' is incorrect.

Please provide any additional information below.

If you remove lines 102 and 103 from manifest_xml.py then everything works as 
expected.  I am unsure about what else that might affect though.

In manifest_xml.py in def ToRemoteSpec:
102     if self.remoteAlias:
103       remoteName = self.remoteAlias

Original issue reported on code.google.com by onionj...@gmail.com on 9 Sep 2014 at 5:25