git svn 克隆失败

git svn clone failed

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.

看起来这是 git 的 64 位版本中 windows >= 2.7.0 的错误,上游报告:

https://github.com/git-for-windows/git/issues/708

https://github.com/git-for-windows/git/issues/650

目前可用的最佳选择是使用 32 位版本,或以前的 64 位版本。

我遇到了同样的问题。通过为 windows 64 位卸载 git 版本 2.8.1 并为 windows 32 位安装新的 git 安装程序 2.8.2 解决。

与版本 2.10.0 相同 - 64 位版本失败,但 32 位版本有效。

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

一开始我安装的是64位版本GIT for win和exec

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位版本后安装了32位版本的GIT for win。

安装32位版本时, 需要 select 选项 "Use MinTTY(the default terminal of MSYS2)" 而不是 "Use Windows' default console window"。解决这个问题很重要。

如果你 select "Use Windows' default console window",rebaseall 所需的 "dash.exe" 不会安装。

安装完成后,输入以下内容即可。

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

又这样输入,成功了

git svn fetch

P.S

我试图将服务器实例类型更改为 T2.large。 没问题,不知道为什么。

希望对您有所帮助。