git submodule update failed

本文介绍了解决YouCompleteMe中遇到的子模块错误的方法。通过删除问题子模块文件夹并使用git submodule update命令重新初始化子模块,成功解决了无法找到当前修订版本的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

or path 'third_party/waitress'
Submodule 'NRefactory' (https://github.com/nosami/OmniSharpServer) registered for path 'NRefactory'
Submodule 'cecil' (https://github.com/nosami/OmniSharpServer) registered for path 'cecil'
fatal: Needed a single revision
Unable to find current revision in submodule path 'third_party/requests'

Failed to recurse into submodule path 'third_party/ycmd'


解决:

arma8@android:~/.vim/bundle/YouCompleteMe$ rm -fr third_party/
arma8@android:~/.vim/bundle/YouCompleteMe$ git submodule update --init --recursive
Submodule 'third_party/requests' () registered for path 'third_party/requests'
Submodule 'third_party/requests-futures' () registered for path 'third_party/requests-futures'
Submodule 'third_party/ycmd' () registered for path 'third_party/ycmd'
Submodule path 'third_party/requests': checked out 'b83131779c701720a9ae9efae78996277d416269'
Submodule path 'third_party/requests-futures': checked out '98712e7d0f6be2a090b6fda2a925f85e63656b58'
Submodule path 'third_party/ycmd': checked out '10c456c6e32487c2b75b9ee754a1f6cc6bf38a4f'

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值