Skip to content

Handling of empty directories #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gebae opened this issue Mar 27, 2018 · 3 comments
Open

Handling of empty directories #44

gebae opened this issue Mar 27, 2018 · 3 comments
Labels

Comments

@gebae
Copy link

gebae commented Mar 27, 2018

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
Copy link

Do you know of any workaround for this?

@itineric
Copy link

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
Copy link
Contributor

Vampire commented Jul 12, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants