Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can init and fetch file with git-svn, but can't clone

Tags:

git

svn

git-svn

I read the manual and it said clone is Runs init and fetch.

But I tried this:

git svn clone -T http://svn.felspar.com/public/m-intercept/trunk/

then got:

fileparse(): need a valid pathname at /usr/lib/git-core/git-svn line 405

And not any file was downloaded.

But when I used:

git svn init http://svn.felspar.com/public/m-intercept/trunk/
git svn fetch

All right. It works perfectly. I use the exact same URL.

like image 225
Lai Yu-Hsuan Avatar asked Jan 28 '26 16:01

Lai Yu-Hsuan


1 Answers

The -T parameter expects the name of the trunk dir.

Normal usage would be

git svn clone -T trunk -t tags -b branches http://svn.felspar.com/public/m-intercept

to tell git where to look for trunk, tags and branches and map them to git tags and branches.

like image 162
thomasa88 Avatar answered Jan 30 '26 05:01

thomasa88



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!