2012-11-06 71 views
9

令人困惑的是,我多次使用git svn克隆svn repo失敗,爲什麼?爲什麼git-svn信號失敗13?

$ git svn clone -s https://192.168.2.145/svn/myprojects/Search/ 

Following parent with do_switch 
Successfully followed parent 
r362 = 6be745be496f98f96ac66fccead8211734cf6455 (refs/remotes/tags/8-22) 
Found possible branch point: https://192.168.2.145/svn/myprojects/demo/trunk => https://192.168.2.145/svn/myprojects/Search/trunk, 368 
Initializing parent: refs/remotes/[email protected] 
**error: git-svn died of signal 13** 


$ echo $? 
141 

回答

8

以下this thread,它似乎是一個相當奇特(和未解決)的錯誤。

我設法進一步得到了很多與

while ! git svn fetch ; do sleep 1 ; done 

但最終我超出了我的磁盤配額。

我也碰到過我的git-svn clones。去年發生過一次。
我想這招,我發現周圍的Googling:

rm -f .git/index 
git read-tree --reset HEAD 
git status 

...但它並沒有幫助。
我最終重新做了git svn clone。從那以後它運行良好。

+5

重複'git svn fetch'幾次完成我的克隆。 – austinmarton

0

在一個非常大的svn repo中跑到這裏,最終在最初的git svn克隆失敗並且出現同樣的錯誤之後這樣做了。

while [echo $? -ne「0」]; do git svn fetch;完成

0

shadowhome的答案略有變化以抑制標準輸出,因此錯誤更明顯,並且此語法與zsh一起使用。

while true ; do git svn fetch > /dev/null && break ; done 
1

我的git的svn clone命令與此錯誤失敗,但一個混帳SVN取(用他人的建議)與失敗:

fatal: Not a git repository (or any of the parent directories): .git 

我重新運行

git svn clone <svn-repo> --no-metadata -s <repo dir> 

而且克隆繼續正常。直到我遇到this錯誤,並且現在重新啓動時沒有--no-metadata標誌

0

當使用Ruby 1.9.1升級到Ruby 2時,我遇到了同樣的問題,爲我解決了這個問題。