英文:
svn-migration-scripts.jar works fine....except for empty directories
问题
我已经使用了Atlassian的svn-migration-scripts.jar,因为我们从svn迁移到git,并且已经按照相关的说明(https://www.atlassian.com/git/tutorials/svn-to-git-prepping-your-team-migration)进行了操作。
似乎一切都进行得很顺利,包括同步了额外的内容,因为我们在进行各种检查和操作。然而,我发现空目录没有被迁移。对此有什么想法吗?是否有我忽略考虑的选项或标志?
英文:
I've used Atlassian's svn-migration-scripts.jar as we migrate from svn to git, and have followed the associated instructions (https://www.atlassian.com/git/tutorials/svn-to-git-prepping-your-team-migration)
It seemed that everything has gone fine, including syncs of additional content as we flex muscles and do checks and such. However, I'm discovering that empty directories are not getting migrated. Any thoughts on this? Is there an option or a flag I neglected to consider?
答案1
得分: 1
Yeah, I think I found my answer; while svn has no problem with them, git doesn't like empty directories, similar to ClearCase (I did a migration a while back from CC to git and this wasn't a problem because it had already been addressed while in CC). My solution will be to add a placeholder file .gitignore file to each empty directory.
Thank you @eftshift0
英文:
Yeah, I think I found my answer; while svn has no problem with them, git doesn't like empty directories, similar to ClearCase (I did a migration a while back from CC to git and this wasn't a problem because it had already been addressed while in CC). My solution will be to add a placeholder file .gitignore file to each empty directory.
Thank you @eftshift0
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论