Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why git-svn failed with signal 13?

it is confusing that i failed for many times to clone a svn repo using git svn, why?

$ 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/trunk@368
**error: git-svn died of signal 13**


$ echo $?
141
like image 816
hugemeow Avatar asked Nov 06 '12 06:11

hugemeow


2 Answers

Following this thread, it seems to be a rather peculiar (and unsolved) bug.

I managed to get a lot farther with

while ! git svn fetch ; do sleep 1 ; done

But eventually I exceeded my disk quota.

I've run into this in my git-svn clones as well. It happened once last year.
I tried this trick I found googling around:

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

... but it didn't help.
I ended up re-doing the git svn clone. Since then it has worked fine.

like image 86
VonC Avatar answered Nov 01 '22 00:11

VonC


Slight variation to shadowhome's answer to suppress stdout so errors are more visible and this grammar works with zsh.

while true ; do git svn fetch > /dev/null && break ; done
like image 1
Bruce Edge Avatar answered Nov 01 '22 00:11

Bruce Edge