Apologies if this question is a duplicate, or if I’ve missed something, but in all my searching of the interwebz, I can’t find any information on this.
I want to fork someone else’s SVN project, and then turn it into a local git repo (hopefully preserving all of the SVN commits). All the examples I’ve found have only talked about how to turn your own SVN repo into a git repo via git svn.
For example, I occasionally write some Adobe AIR apps, and I like to use the open-source AlivePDF library for PDF generation. The SVN repo URL is http://alivepdf.googlecode.com/svn/trunk/. Since I have made some changes to the source code that I use locally in my PDF generation, I want to then turn my local fork into a git project. I’ve tried to just do git svn clone http://alivepdf.googlecode.com/svn/trunk/ alivepdf-read-only --no-metadata --stdlayout . (from the directory where I want to store it). However when I look at the git repo history (gitx on Mac), it appears to be empty, i.e., no history of the original AlivePDF author’s commits.
Am I doing something wrong? Do I need to SVN fork the project first, then change it into a git project? Please advise.
Running
git svn clone http://alivepdf.googlecode.com/svn/trunk/ alivepdf-read-onlyon my machine works as expected and gives me complete history, eg:Are you seeing something different?
(I tried making this a comment on your question insteadof an answer, but the formatting gets messed up)