您的位置:首页 > 汽车 > 时评 > 平面设计培训机构排行_网络维护服务合同模板_关键词大全_app运营

平面设计培训机构排行_网络维护服务合同模板_关键词大全_app运营

2024/9/22 15:07:27 来源:https://blog.csdn.net/qq_41106435/article/details/142408290  浏览:    关键词:平面设计培训机构排行_网络维护服务合同模板_关键词大全_app运营
平面设计培训机构排行_网络维护服务合同模板_关键词大全_app运营

报错信息
strp_current_url = current_url[:-4] if current_url.endswith(
^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘endswith’

gclient syncsrc/base (ERROR)
----------------------------------------
[0:00:00] Started.
----------------------------------------
Traceback (most recent call last):File "/home/lign/depot_tools/metrics.py", line 302, in print_notice_and_exityieldFile "/home/lign/depot_tools/gclient.py", line 4638, in <module>sys.exit(main(sys.argv[1:]))^^^^^^^^^^^^^^^^^^File "/home/lign/depot_tools/gclient.py", line 4624, in mainreturn dispatcher.execute(OptionParser(), argv)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/home/lign/depot_tools/subcommand.py", line 254, in executereturn command(parser, args[1:])^^^^^^^^^^^^^^^^^^^^^^^^^File "/home/lign/depot_tools/gclient.py", line 3977, in CMDsyncret = client.RunOnDeps('update', args)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/home/lign/depot_tools/gclient.py", line 2436, in RunOnDepswork_queue.flush(revision_overrides,File "/home/lign/depot_tools/gclient_utils.py", line 1026, in flushreraise(e[0], e[1], e[2])File "/home/lign/depot_tools/gclient_utils.py", line 53, in reraiseraise valueFile "/home/lign/depot_tools/gclient_utils.py", line 1105, in runself.item.run(*self.args, **self.kwargs)File "/home/lign/depot_tools/gclient.py", line 1251, in runself._got_revision = self._used_scm.RunCommand(^^^^^^^^^^^^^^^^^^^^^^^^^^File "/home/lign/depot_tools/gclient_scm.py", line 137, in RunCommandreturn getattr(self, command)(options, args, file_list)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/home/lign/depot_tools/gclient_scm.py", line 664, in wrapperreturn_val = f(*args)^^^^^^^^File "/home/lign/depot_tools/gclient_scm.py", line 866, in updatestrp_current_url = current_url[:-4] if current_url.endswith(^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'endswith'

问题原因:参考https://groups.google.com/a/chromium.org/g/chromium-dev/c/7fv7rSr2sbo
的描述,这个问题似乎是由避免静默覆盖 diff.ignoreSubmodules 配置引入的,该配置在 ‘git config --list -z’ 命令中添加了 ‘–show-scope’ 选项,但该选项从 git v2.26 开始受支持,并且该命令在较旧的 git 中会失败。
解决办法:升级git版本,参考https://blog.csdn.net/ypgsh/article/details/120632001

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com