I am trying to set up subgit
for a huge SVN repository. This repository is very old, so to tidy up the structure a little, I want to make seperate git-repositories for various subdirectories.
Suppose the SVN is at /svn
and has the subdirectories project1
, project2
, etc.
This works
$ subgit configure --svn-url file:///svn/ git.git
$ subgit install git.git
This also works, but creates an empty repository
$ subgit configure --svn-url file:///svn/project1/ /tmp/project1.git
$ subgit install /tmp/project1.git
[...]
Translating Subversion revisions to Git commits...
Subversion revisions translated: 6563.
Total time: 1 seconds.
INSTALLATION SUCCESSFUL
[...]
$ git clone /tmp/project1.git
Cloning into 'project1'...
warning: You appear to have cloned an empty repository.
done.
In the SVN there are actually files inside project1
. Why doesn't it work with subgit and how can I fix it?