简体   繁体   English

Git Svn Clone初始化存储库,但是git repo为空

[英]Git Svn Clone initializes repo, but git repo is empty

So I've been trying to migrate my company's CVS and SVN repositories over to Git for our modern systems. 因此,我一直在尝试将公司的CVS和SVN存储库迁移到用于现代系统的Git。 So I've created the authors file with the format: 因此,我以以下格式创建了authors文件:

last_fi = FirstInitial LastName <firstinitial.lastname@company.com>

From there, I should be able to run this command: 从那里,我应该能够运行以下命令:

git svn clone -s --authors-file=authors.txt "https://company.svnrepo.path/repoparent/repo" gitreponame --prefix=svn/

When this is done, however, I get this: 但是,完成此操作后,我得到以下信息:

Initialized empty Git repository in c:/checkout/git/Suite/.git/ Using higher level of URL: https://company.svnrepo.path/repoparent/repo => https://company.svnrepo.path/repoparent W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: REPORT request failed on '/svnfolder/middir/!svn/bc/100': File not found: revision 100, path '/repoparent' W: Do not be alarmed at the above message git-svn is just searching aggressively for old history. This may take a while on large repositories C:\\checkout\\git> 3048

It checks r100 through the current revision (r3048) and initializes the git repo, but there's no master, no HEAD and no commits to make. 它通过当前版本(r3048)来检查r100并初始化git repo,但是没有主服务器,HEAD和提交。 I have no working directory beyond the initial git init folders and files. 除了最初的git init文件夹和文件,我没有工作目录。

I've been trying all kinds of odd and strange things just to move forward and I'm completely stumped. 我一直在尝试各种奇怪的事情,只是为了前进,而我完全陷入了困境。 I think I've been looking at it too long and I'm missing something basic. 我想我已经看了太久了,我缺少一些基本的东西。 But if anyone can help, it would be greatly appreciated. 但是,如果有人可以提供帮助,将不胜感激。

So a lot of collaboration and some luck went into finding a solution for this problem. 因此,很多合作和运气为这个问题找到了解决方案。 As it turns out, the path to the remote SVN server is case sensitive whereas most of the other aspects of the command are not. 事实证明,远程SVN服务器的路径区分大小写,而该命令的其他大部分内容都不区分大小写。 When I was typing repoparent, it should have been RepoParent. 当我键入repoparent时,应该是RepoParent。 This seems like a stupid mistake, but I hope it can help someone else out there! 这似乎是一个愚蠢的错误,但我希望它可以帮助其他人!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM