2013-10-06 90 views
3

我目前正在尝试从我的git仓库克隆一些vim设置,并且仓库大多包含其他托管项目的子模块。但是,当我尝试更新所有子模块时,出现以下错误。无法更新Git子模块

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访问github(而不是HTTPS)。另外,有没有一种方法可以单独更新我的其他插件(子模块)?

+0

检查以确保子模块的路径正确 - 您收到HTTP/400错误,这意味着请求格式不正确。我会假设路径可能稍微偏离 –

回答

1

确保您可以重现该问题:这是否正常工作?

git clone http://github.com/tpope/vim-fugitive.git 

(我只是测试它,它克隆就好了)

这是可能的,这是一个小故障,由于一些recent GitHub availability issue

14:22 UTC混帐的一小部分由于我们的文件服务器对之一的紧急维护,存储库当前不可用。

其次,您的网址是不是使用了https:你可以试着和切换的网址:

https://github.com/tpope/vim-fugitive 
or 
[email protected]:tpope/vim-fugitive.git 

对于这一点,用git 1.8.3+,您需要:

git submodule deinit bundle/fugitive 
# edit .gitmodules 
git submodule update --init bundle/fugitive 
+0

对于今后阅读这篇文章是值得的 - 我们有一个非常类似的问题,其中'ssh'和'https'调用之间的区别恰好是我们需要编辑两个每个子模块的文件 - 编辑'.gitmodule'中的存储库路径并编辑'.git/config'中的存储库路径 – wilfo