I'm converting a repository from svn to git with subgit
and it generates some empty commits because there are some folder only commits.
Is there any way to filter out them, preferably in the conversion process?
I'm converting a repository from svn to git with subgit
and it generates some empty commits because there are some folder only commits.
Is there any way to filter out them, preferably in the conversion process?
Yes, you can specify
[translate]
createEmptyGitCommits = false
in subgit/config
file (you can set that anytime, but the best of all is to set that immediately after subgit configure
step) and run
$ subgit install path/to/repository
to apply changes. Since that moment empty Git commits won't be created when translating new SVN revisions, older (already translated) empty Git commits won't be removed in order not to change SHA-1 hashes in the Git repository.