Git SVN克隆错误 [英] Error with Git SVN clone

查看:117
本文介绍了Git SVN克隆错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将几个项目从SVN迁移到Git,我正在使用Git的'svn clone'功能。我尝试运行以下命令:

  git svn clone --stdlayout --authors-file = authors.txt<路径-to-svn的项目> <局部-GIT-回购名称> 

我已经能够克隆几个较小的项目,但是当我尝试克隆一个更大的项目时,以下错误:

 无法在/usr/lib/perl5/site_perl/Git.pm第1322行处截断文件。

在/usr/lib/perl5/5.8.8/File/Temp.pm 890行删除.git / Git_04wYzV出错。

我认为它可能会在谷歌搜索中找到一个快速修复,但相反,这看起来是一个不寻常的错误。有没有人有线索我怎么能通过这个?



我的版本是相当新的,我试图在Windows 8.1上运行:

  Git:使用版本1.9.4.msysgit.0 
Subversion:使用版本1.8.9
git-svn:使用version 1.9.4.msysgit.0


解决方案

调用 git svn fetch 为管理员为我工作。它可能会访问(并尝试编辑/删除)一些需要管理员权限的文件。

I am migrating several projects from SVN to Git, and I am using Git's 'svn clone' feature. I am trying to run the following:

git svn clone --stdlayout --authors-file=authors.txt <path-to-svn-project> <local-git-repo-name>

I have been able to clone several smaller projects, but when I try and clone a larger project it gives the following errors:

couldn't truncate file at /usr/lib/perl5/site_perl/Git.pm line 1322.

Error removing .git/Git_04wYzV at /usr/lib/perl5/5.8.8/File/Temp.pm line 890.

I thought it likely to find a quick fix in a google search, but instead this looks to be an unusual error. Does anyone have a clue how I can get past this?

My versions are pretty recent, and I'm trying to run this on Windows 8.1:

Git: using version 1.9.4.msysgit.0
Subversion: using version 1.8.9
git-svn: using version 1.9.4.msysgit.0

解决方案

Invoking git svn fetch as Administrator has worked for me. It might access (and try to edit/delete) some files requiring Admin privileges.

这篇关于Git SVN克隆错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆