svn-all-fast-export / svn2git

:octopus: A fast-import based converter for an svn repo to git repos
GNU General Public License v3.0
262 stars 100 forks source link

Handling of empty directories #44

Open gebae opened 6 years ago

gebae commented 6 years ago

Svn2git knows the "--empty-dirs" option to handle empty SVN directories. Unfortunately the option is only effective if the directory is created empty. If a directory is emptied while deleting all files and folders in it, the .gitignore file is not created. It means that currently - if you have such cases - some kind of 'post-processing' after the svn2git-based migration is needed.

brianschrameck commented 6 years ago

Do you know of any workaround for this?

itineric commented 5 years ago

Hi,

Had the same issue during my migration, fixed it. See PR #78 . Fix works in my case, hope it works in yours too.

Eric

Vampire commented 4 years ago

This should be working properly now. See https://github.com/svn-all-fast-export/svn2git/blob/master/test/empty-dirs.bats#L401 and following tests.