简体   繁体   English

svn2git神秘错误

[英]svn2git cryptic error

I'm trying to import SVN repo into GIT. 我正在尝试将SVN repo导入GIT。
svn2git terminates with this error message: svn2git终止此错误消息:

command failed: 2>&1 git svn fetch 命令失败:2>&1 git svn fetch

When I'm trying to run "git svn fetch" manually, it gives this error: 当我尝试手动运行“git svn fetch”时,它会出现以下错误:

r8641 = dbb23736330e97c356a5ecd0dd29634265b7956c (refs/remotes/svn/trunk) Permission denied: Can't open '/tmp/report.tmp': Permission denied at C:\\Program Files (x86)\\Git/libexec/git-core\\git-svn line 3187 r8641 = dbb23736330e97c356a5ecd0dd29634265b7956c(refs / remotes / svn / trunk)权限被拒绝:无法打开'/tmp/report.tmp':C:\\ Program Files(x86)\\ Git / libexec / git-core \\ git-权限被拒绝svn line 3187

(running script under admin rights). (在管理员权限下运行脚本)。

Any advise? 有什么建议吗?

UPD I've noticed, that before this error happens - some files are processed successfully (ie svn fetch executes for some time). UPD我注意到,在此错误发生之前 - 某些文件已成功处理(即svn fetch执行一段时间)。 The error happens in random time after command start, usually in a few seconds. 错误发生在命令启动后的随机时间内,通常在几秒钟内。

Running svnserve with -d -r can be a solution: 使用-d -r运行svnserve可以是一个解决方案:

http://blog.dbtracer.org/2010/01/20/porting-subversion-git-with-error/ http://blog.dbtracer.org/2010/01/20/porting-subversion-git-with-error/

The problem is that you are accessing this file locally and using different formats for your original svn repo and the git instance that is migrating from svn to git (most likely your git is behind your svn repo version) - instead try running the migration through an svn server - try starting up an svn server with 问题是你在本地访问这个文件并使用不同格式的原始svn repo和从svn迁移到git的git实例(很可能你的git在你的svn repo版本之后) - 而是尝试通过svn服务器 - 尝试启动一个svn服务器

svnserve.exe -d -r /path/to/repo

and then try your import again using: 然后使用以下命令再次尝试导入:

git.exe svn init -s "svn://localhost/repo_name"

The problem is not your permissions, but a mismatch of versions 问题不是您的权限,而是版本不匹配

From here : 这里

I had the same problem, happens when an error occurs (i missed some authors in the authors file) in the middle of the process. 我遇到了同样的问题,在进程中间发生错误(我错过了作者文件中的一些作者)时发生了。 I solved it by removing the directory in where you executed svn2git, recreate it and execute it again. 我通过删除你执行svn2git的目录解决了它,重新创建它并再次执行它。 Still this isn't a solution and this issue needs to be fixed. 这仍然不是解决方案,需要解决这个问题。

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

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