TL;DR
No. However, you have some alternatives.
Git and SVN History
The way Git and SVN handle history is completely different. When you check out an SVN repository, the .svn directory only holds the most recent commit so that it can be compared to the working directory or reverted.
Git, on the other hand, clones the entire history. There are certain exceptions such as shallow clones, but for most purposes Git will require a complete repository to do things like showing history or calculating diffs.
If you don't mind a truncated history, you can look at the --depth
or --revision
flags for git-svn
. These flags will allow you to limit the number of revisions you retrieve from the SVN repository, trading history and functionality for speed.
However, while you could import your SVN working copy as a new Git repository, the .svn directories don't hold any actual history. You must connect to the SVN repository to access the history, so you can't import from a working copy.
Mirror Subversion First
However, you might consider mirroring the Subversion repository and then running git-svn
locally against your mirror. You will still need a complete copy of your SVN repository, but mirroring the repository takes less time than retrieving Subversion commits one at a time over a network connection with git-svn
.
Note that you still can't do what you want, but this is another viable alternative to improve the speed of SVN->Git migrations. In addition to a speed boost, this will also result in a more-complete history on the Git side.