hanw / git-repo

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

repo -u url -m absolute_path doesn't wrok #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: 1.6.8.7
Environment: repo version v1.6.8.7
       (from git://android.git.kernel.org/tools/repo.git)
git version 1.5.4.3
Python 2.5.2 (r252:60911, Jul 22 2009, 15:33:10) 
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]

What steps will reproduce the problem?
1. create manifest file default.xml at path /home/mritter/default.xml
2. repo init -u 
ssh://partner.source.android.com:29418/platform/ohd_manifest.git -m 
/home/mritter/android/ospushtest/partner.gerrit/ohd_manifest/default.xml
3. repo sync

Traceback (most recent call last):
  File "/usr/local/google/android/gitrepos/partner-gerrit/test/.repo/repo/main.py", line 235, in <module>
    _Main(sys.argv[1:])
  File "/usr/local/google/android/gitrepos/partner-gerrit/test/.repo/repo/main.py", line 217, in _Main
    repo._Run(argv)
  File "/usr/local/google/android/gitrepos/partner-gerrit/test/.repo/repo/main.py", line 123, in _Run
    cmd.Execute(copts, cargs)
  File "/usr/local/google/android/gitrepos/partner-gerrit/test/.repo/repo/subcmds/sync.py", line 195, in Execute
    all = self.GetProjects(args, missing_ok=True)
  File "/usr/local/google/android/gitrepos/partner-gerrit/test/.repo/repo/command.py", line 63, in GetProjects
    all = self.manifest.projects
  File "/usr/local/google/android/gitrepos/partner-gerrit/test/.repo/repo/manifest_xml.py", line 158, in projects
    self._Load()
  File "/usr/local/google/android/gitrepos/partner-gerrit/test/.repo/repo/manifest_xml.py", line 190, in _Load
    self._ParseManifest(True)
  File "/usr/local/google/android/gitrepos/partner-gerrit/test/.repo/repo/manifest_xml.py", line 208, in 
_ParseManifest
    root = xml.dom.minidom.parse(self.manifestFile)
  File "/usr/lib/python2.5/xml/dom/minidom.py", line 1915, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 922, in parse
    fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: 
'/usr/local/google/android/gitrepos/partner-
gerrit/test/.repo/manifest.xml'

#ls -al .repo/manifest.xml
lrwxrwxrwx 1 mritter eng 82 Nov  4 17:17 .repo/manifest.xml -> 
manifests//home/mritter/android/ospushtest/partner.gerrit/ohd_manifest/default.x
ml

What is the expected output? What do you see instead?
.repo/manifest.xml -> 
/home/mritter/android/ospushtest/partner.gerrit/ohd_manifest/default.xml

Please provide any additional information below.

Original issue reported on code.google.com by michaelw...@gmail.com on 5 Nov 2009 at 1:39

GoogleCodeExporter commented 9 years ago

Original comment by sop+code@google.com on 5 Nov 2009 at 1:48

GoogleCodeExporter commented 9 years ago
is that identical to https://code.google.com/p/git-repo/issues/detail?id=132 ?

I.e. have you specified -u only as a workaround, or did you actually intend to 
have a git repo _and_ an external manifest file ?

Original comment by darkwint...@gmail.com on 23 Apr 2013 at 2:37