On Thursday, July 31, 2014 10:19:13 AM UTC+2, Thomas Ferris Nicolaisen 
> 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.

Oh, in an existing clone, you could try doing git svn mkdirs 

Attempts to recreate empty directories that core git cannot track based on 
information in $GIT_DIR/svn/<refname>/unhandled.log files. Empty 
directories are automatically recreated when using "git svn clone" and "git 
svn rebase", so "mkdirs" is intended for use after commands like "git 
checkout" or "git reset". (See the svn-remote.<name>.automkdirs config file 
option for more information.) 

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