wordpress-git-svn-release icon indicating copy to clipboard operation
wordpress-git-svn-release copied to clipboard

Script doesn't delete empty directories on SVN

Open r-a-y opened this issue 11 years ago • 1 comments

Hi sun,

Just tested your fork for the WP git-svn script and it works nicely!

I just came across a minor bug where empty directories are not being removed on SVN. The script does remove files, but doesn't remove directories once no files are present in them.

r-a-y avatar Apr 23 '14 17:04 r-a-y

Yeah, git has no notion (at all) of directories. It only knows about files. (That's why you can't commit an empty directory to git.)

I guess we could try to amend the dump-export process with something along the lines of this?

# Find and delete all empty directories after synchronizing files.
find -type d -empty -exec svn delete '{}' ';'

sun avatar Apr 23 '14 21:04 sun