esrlabs / git-repo

repo - The multiple repository tool (also works on MS Windows!)
https://code.google.com/p/git-repo/
Apache License 2.0
436 stars 145 forks source link

sync error, manifestUrl is null #79

Open shaoweijie opened 5 years ago

shaoweijie commented 5 years ago

when sync, get this error

<?xml version="1.0" encoding="utf-8"?>
<manifest>
    <remote name="origin" fetch="https://gitee.com/Hancher/"/>
    <default remote="origin" revision="develop"/>
    <project path="DisApp" name="DisApp" remote="origin"/>
    <project path="DownWater" name="DownWater" remote="origin"/>
</manifest>
Traceback (most recent call last):
  File "E:\test\.repo\repo/main.py", line 538, in <module>
    _Main(sys.argv[1:])
  File "E:\test\.repo\repo/main.py", line 512, in _Main
    result = repo._Run(argv) or 0
  File "E:\test\.repo\repo/main.py", line 160, in _Run
    copts, cargs = cmd.OptionParser.parse_args(argv)
  File "E:\test\.repo\repo\command.py", line 67, in OptionParser
    self._Options(self._optparse)
  File "E:\test\.repo\repo\subcmds\sync.py", line 191, in _Options
    self.jobs = self.manifest.default.sync_j
  File "E:\test\.repo\repo\manifest_xml.py", line 362, in default
    self._Load()
  File "E:\test\.repo\repo\manifest_xml.py", line 430, in _Load
    self._ParseManifest(nodes)
  File "E:\test\.repo\repo\manifest_xml.py", line 483, in _ParseManifest
    remote = self._ParseRemote(node)
  File "E:\test\.repo\repo\manifest_xml.py", line 659, in _ParseRemote
    return _XmlRemote(name, alias, fetch, pushUrl, manifestUrl, review, revision)
  File "E:\test\.repo\repo\manifest_xml.py", line 79, in __init__
    self.resolvedFetchUrl = self._resolveFetchUrl()
  File "E:\test\.repo\repo\manifest_xml.py", line 89, in _resolveFetchUrl
    manifestUrl = self.manifestUrl.rstrip('/')
AttributeError: 'NoneType' object has no attribute 'rstrip'
repo version v0.4.20
       (from https://github.com/esrlabs/git-repo)
repo launcher version 1.25
       (from C:\Users\HANCHER\bin\repo)
git version 2.22.0.windows.1
Python 2.7.16 (v2.7.16:413a49145e, Mar  4 2019, 01:37:19) [MSC v.1500 64 bit (AMD64)]