svn-migration-scripts.jar运行正常… 除了空目录。

huangapple go评论61阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年6月29日 23:38:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76582599.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定