git svn clone results in empty directory
I have an svn repository with project structure:
/root/projectA/trunk
/root/projectA/branches
/root/projectA/tags
/root/projectB/trunk
/root/projectB/branches
/root/projectB/tags
I want to clone projectA. When I run:
git svn clone -r <revision number>:HEAD <url>/root/projectA
I get no errors and a git repository is created under the new projectA directory. However the directory is empty. Am I missing soemthing?
My problem was using the -s
or --stdlayout
because my svn repo did NOT have a standard layout (trunk, branches, tags).
Below command did the job:
git svn clone -r HEAD <url>/root/projectA