Git SVN克隆失败。

16
git svn clone url

Initialized empty Git repository in D:/code/Androi
d/ProjName/.git/
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem h
as no item: '/svn/Projects/!svn/rvr/100/Android/ProjName' path not found
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
      4 [main] perl 8428 child_info_fork::abort: unable to map d:\Program Files\
Git\usr\bin\msys-svn_subr-1-0.dll, Win32 error 1114
open2: fork failed: Resource temporarily unavailable at /mingw64/share/perl5/sit
e_perl/Git.pm line 411.

在执行命令后,从服务器上未获得任何内容。

如果使用以下命令,在第二个命令"git svn fetch"之后得到相同的结果。

$ git svn init url
Initialized empty Git repository in D:/code/Android/try1/.git/

johnliao@john-toshiba MINGW64 /d/code/Android/try1 (master)
$ git svn fetch
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: '/svn/Projects/!svn/rvr/100/Android/ProjName' path not found
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
      4 [main] perl 5472 child_info_fork::abort: unable to map D:\Program Files\Git\usr\bin\msys-svn_subr-1-0.dll, Win32 error 1114
open2: fork failed: Resource temporarily unavailable at /mingw64/share/perl5/site_perl/Git.pm line 411.

无法映射d:\ Program Files \ Git \ usr \ bin \ msys-svn_subr-1-0.dll。看起来很麻烦。该文件存在吗?它在C:上存在吗? - mkasberg
不是C盘,D:\Program Files\Git\usr\bin\msys-svn_subr-1-0.dll已存在。 - john liao
Amaslenn,请看一下问题部分。我按照你的方法得到了相同的错误。 - john liao
1
@johnliao:你有解决这个问题的方案吗?我们正在面临一些问题。先谢谢了。 - Shashank_Itmaster
@amaslenn,在卸载了git并安装了git 2.6.2版本后,问题得到了解决。 - john liao
显示剩余2条评论
4个回答

28

2
在我的情况下,2.6.2可以工作,但是2.7.0,2.8.2,2.8.3不能正常工作。 - Jeff T.
就我个人而言,我仍然在使用2.9.3 64位版本时遇到问题,但32位版本则没有问题。 - Nick Edwards
1
版本2.12.1 64位仍存在问题。32位版本按预期工作。 - Saul Delgado
版本还存在问题:git version 2.13.3.windows.1(64位)。 - Anthony Horne
这对我来说仍然是个问题。我将64位的2.17换成了32位的2.18,现在它又可以工作了。 - Iain Holder

1

我在Git 2.10.0上遇到了同样的问题,并解决了它。我正在AWS的Windows服务器环境中工作,实例类型为T2.small。

起初,我安装了64位版本的GIT for Win并执行了操作。

git svn fetch

但是Git说

C:\Program Files\
Git\usr\bin\msys-svn_subr-1-0.dll, Win32 error 1114
open2: fork failed: Resource temporarily unavailable at /mingw64/share/perl5/sit
e_perl/Git.pm line 411.

因此,我卸载了64位版本后安装了Windows的32位GIT版本。

在安装32位版本时,需要选择选项“使用MinTTY(MSYS2的默认终端)”,而不是“使用Windows的默认控制台窗口”。这很重要以解决此问题。

如果选择“使用Windows的默认控制台窗口”,则所需的“dash.exe”无法安装,这是个问题。

安装完成后,只需键入以下内容即可。

cd C:\Program Files (x86)\Git\usr\bin
dash -c "./dash rebaseall -v -p"

当我再次以这种方式输入时,我成功了。

git svn fetch

P.S

我尝试将服务器实例类型更改为T2.large。

没有问题,但我不知道原因。

希望对你有所帮助。


1
我曾经遇到同样的问题。通过卸载 Windows 64 位版本的 Git 2.8.1 并安装新的 Windows 32 位版本的 Git 安装程序 2.8.2 解决了该问题。

-2

与2.10.0版本相同 - 64位版本失败,但32位版本可用。


2
信息可以作为注释添加,人们期望答案作为解决方案。 - Dipu Raj

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接