2013-10-06 117 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