Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync error, manifestUrl is null #79

Open
shaoweijie opened this issue Jun 18, 2019 · 0 comments
Open

sync error, manifestUrl is null #79

shaoweijie opened this issue Jun 18, 2019 · 0 comments

Comments

@shaoweijie
Copy link

shaoweijie commented Jun 18, 2019

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)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant