On Wednesday, July 30, 2014 12:04:01 PM UTC+2, Sebastian Kleine wrote:
> Im' trying to clone a svn repository into git with "git svn clone" 
> command. It works except that empty directories are not kept in the git 
> repository (they don't exists after git svn clone). I know this is normal 
> git behaviour and that you can put a .gitignore file in an empty directory 
> to keep the directory in git. I've read about the --preserve-empty-dirs 
> parameter to git svn and thought this would handle the problem of missing 
> empty directories after with git svn clone. But it doesn't. The directories 
> are still missing. Why? How can I keep them?
> I'm using git svn version

You have to specify the  --preserve-empty-dirs when doing the initial 
git-svn clone. Doing it during an update (git-svn rebase) won't suffice.

By default, this should create a .gitignore file in every empty directory 
coming from SVN.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to