当前位置: 首页 > news >正文

webrtc gclient sync报错问题解决

报错信息
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

http://www.lryc.cn/news/445858.html

相关文章:

  • FLUX模型,或许这几点你还未曾都了解,最详细的Flux模型介绍(附模型安装包)
  • RAG(Retrieval-Augmented Generation)检索增强生成技术基础了解学习与实践
  • 基于SpringBoot实现高性能缓存组件
  • 【深度学习基础模型】递归神经网络 (Recurrent Neural Networks, RNN) 详细理解并附实现代码。
  • python全栈学习记录(十九) hashlib、shutil和tarfile、configparser
  • RL进阶(一):变分推断、生成模型、SAC
  • WPF 绑定 DataGrid 里面 Button点击事件 TextBlock 双击事件
  • 828华为云征文|华为云Flexus云服务器X实例Windows系统部署一键短视频生成AI工具moneyprinter
  • 非标精密五金加工的技术要求
  • 新手小白怎么通过云服务器跑pytorch?
  • Spring 全家桶使用教程
  • Spark SQL性能优化高频面试题及答案
  • 云原生链路观测平台 openobserve + fluent-bit,日志收集
  • Android 车载应用开发指南 - CarService 详解(下)
  • 【Linux网络 —— 网络基础概念】
  • el-form动态标题和输入值,并且最后一个输入框不校验
  • 一,初始 MyBatis-Plus
  • 安卓13删除下拉栏中的关机按钮版本2 android13删除下拉栏关机按钮
  • 快递物流单号识别API接口代码
  • AI时代的程序员:如何保持和提升核心竞争力
  • Oracle 数据库常用命令与操作指南
  • spring boot项目对接人大金仓
  • 《操作系统 - 清华大学》1 -2:操作系统概述 —— 什么是操作系统
  • power bi制作各季度收入累加柱状图——日期表、calculate、datesytd
  • OceanBase 3.X 高可用 (一)
  • CSR、SSR、SSG
  • linux -L16-linux 查看应用占用的资源top
  • QT——多线程操作
  • 理解C语言之深入理解指针(三)
  • 「芯片知识」MP3解码ic方案,音乐芯片在数字音频中的作用