I’ve just spent some time wondering why a “git svn clone <repo>” followed by a “git svn fetch” was producing no files in the target folder.
This was puzzling, as the Subversion repository was upto version 423, and poking through the .git metadata I could see that the version information and URL of the SVN repo was all present and correct, but yet it would stubbornly refuse to pull down any files, merely presenting the following message :
Initialized empty Git repository in /Users/martin/src/projectname/.git/
Long story short – this particular repository had a non-standard layout where there was no trunk subfolder, so adding the -T option to specify the trunk location as the root like so :
git svn clone svn+ssh://firstname.lastname@example.org/path/to/svn/project -T
did the trick and the files started flowing again.