我目前正在尝试从我的git repo中克隆一些我的vim设置,而repo主要包含其他托管项目的子模块。但是,当我尝试更新所有子模块时,出现以下错误。
Cloning into bundle/ack...
remote: Counting objects: 318, done.
remote: Compressing objects: 100% (189/189), done.
remote: Total 318 (delta 124), reused 256 (delta 70)
Receiving objects: 100% (318/318), 48.13 KiB, done.
Resolving deltas: 100% (124/124), done.
Submodule path 'bundle/ack': checked out 'fd9632b40ac07b39adb270311cde2c460c9ba6da'
Cloning into bundle/command-t...
remote: Counting objects: 2820, done.
remote: Compressing objects: 100% (1434/1434), done.
remote: Total 2820 (delta 1348), reused 2574 (delta 1122)
Receiving objects: 100% (2820/2820), 2.75 MiB | 701 KiB/s, done.
Resolving deltas: 100% (1348/1348), done.
Submodule path 'bundle/command-t': checked out '07087e16ba8fe0a87b1d1ccd03e158a0157dc1f8'
Cloning into bundle/fugitive...
error: RPC failed; result=22, HTTP code = 400
fatal: The remote end hung up unexpectedly
Clone of 'http://github.com/tpope/vim-fugitive.git' into submodule path 'bundle/fugitive' failed
我无法更新其余的插件。我通过ssh(而不是HTTPS)访问github。另外,有没有办法可以单独更新其余的插件(子模块)?
答案 0 :(得分:1)
确保您可以重现此问题:这有效吗?
git clone http://github.com/tpope/vim-fugitive.git
(我刚试过它,它克隆得很好)
由于某些recent GitHub availability issue:
,这可能是一个小问题14:22 UTC由于我们的一个文件服务器对的紧急维护,目前只有一小部分git存储库不可用。
其次,您的网址未使用https:您可以尝试使用以下网址切换网址:
https://github.com/tpope/vim-fugitive
or
git@github.com:tpope/vim-fugitive.git
为此,使用git 1.8.3+,您需要:
git submodule deinit bundle/fugitive
# edit .gitmodules
git submodule update --init bundle/fugitive