简体   繁体   English

git svn clone失败了

[英]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.

after the command was executed, nothing was got from server. 执行命令后,没有从服务器获取任何内容。

If use the following commands, get the same result after the second command "git svn fetch" 如果使用以下命令,请在第二个命令“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.

Looks like it is a bug in the 64 bit version of git for windows >= 2.7.0, reported upstream: 看起来它是64位版本的git for windows> = 2.7.0中的一个错误,上游报道:

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

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

The best option currently available is to use the 32 bit version, or previous 64 bit versions. 目前可用的最佳选择是使用32位版本或以前的64位版本。

I had the same problem. 我有同样的问题。 Solved by uninstalling git version 2.8.1 for windows 64 bit and installing the new git installer 2.8.2 for windows 32 bit. 通过卸载Windows 64位的git版本2.8.1并为Windows 32位安装新的git安装程序2.8.2解决了这个问题。

I encountered the same problem on Git 2.10.0 and I solved it. 我在Git 2.10.0上遇到了同样的问题,我解决了它。 Working on windows server environment on AWS,instance type is T2.small. 在AWS上的Windows服务器环境中工作,实例类型为T2.small。

At first,I installed the 64-bit version GIT for win and exec 起初,我为win和exec安装了64位版本的GIT

git svn fetch

But Git said 但是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.

So,I installed the 32-bit version of GIT for win after uninstalling the 64-bit version. 因此,在卸载64位版本后,我安装了32位版本的GIT for win。

When installing the 32-bit version, need to select the option "Use MinTTY(the default terminal of MSYS2)" instead of "Use Windows' default console window".It's important to solve this problem. 安装32位版本时,需要选择“使用MinTTY(MSYS2的默认终端)”选项而不是“使用Windows”默认控制台窗口“。解决此问题非常重要。

If you select "Use Windows' default console window", "dash.exe" which is required to rebaseall doesn't install. 如果选择“使用Windows”默认控制台窗口“,则不会安装rebaseall所需的”dash.exe“。

After the installation,just type followings. 安装后,只需输入以下内容即可。

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

and typed like this again ,I got success. 并再次输入,我获得了成功。

git svn fetch

PS PS

I tried to change the server instance type to T2.large. 我试图将服务器实例类型更改为T2.large。 There's no problem and I don't know why. 没问题,我不知道为什么。

Hope it helps. 希望能帮助到你。

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

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

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