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
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 clonesas 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 thegit svn clone. Since then it has worked fine.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With