git svn 克隆在 cygwin 下死于信号 11

发布于 2024-10-21 10:30:48 字数 485 浏览 6 评论 0原文

我在 cygwin 下使用 git svn 时遇到问题,

user@comp /cygdrive/c/repositories/git/repo $git svn clone --username=username "https://host/svn/repos/repo" .
Initialized empty Git repository in /cygdrive/c/repositories/git/repo/.git/
error: git-svn died of signal 11

如何处理?

user@comp ~ $svn --version
svn, version 1.6.15 (r1038135)
   compiled Nov 29 2010, 14:09:28

user@comp ~ $git --version
git version 1.7.4

I have a problem with git svn under cygwin

user@comp /cygdrive/c/repositories/git/repo $git svn clone --username=username "https://host/svn/repos/repo" .
Initialized empty Git repository in /cygdrive/c/repositories/git/repo/.git/
error: git-svn died of signal 11

How to handle this?

user@comp ~ $svn --version
svn, version 1.6.15 (r1038135)
   compiled Nov 29 2010, 14:09:28

user@comp ~ $git --version
git version 1.7.4

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

你如我软肋 2024-10-28 10:30:48

我在这里找到了一个很好的提示:
http://pwizardry.com/devlog/index.cgi/2010/03/29#svn2git< /a>

如果您 cd 到新存储库并输入
git svn fetch
它将从上次离开的地方继续。

我遇到了同样的问题,该解决方案似乎对我有用。

I found a good tip here:
http://pwizardry.com/devlog/index.cgi/2010/03/29#svn2git

If you cd to the new repository and type
git svn fetch
it will continue where it left of.

I had the same issue, and the solution seems to work for me.

葬﹪忆之殇 2024-10-28 10:30:48

我和这个问题斗争了5个小时。我试图使用 cygwin 中的 git 。但不幸的是...
这种行为

git-svn died signal 11

尝试做的时候的

git svn clone http://repo.com/path/to/my/repo.git -s

真的让我很生气...另外,我是在工作地点下班后做的...:)我们使用代理从我们的网络连接到 svn 存储库。
我尝试过rebaseall...农奴互联网来解决问题...但不幸的是不幸的是(Не фортануло не повезло...)...

所以我决定,我哈喽,解决这个问题!

我在我的节日去 wokr 并执行以下操作:

  • 从我的 cygwin 中删除 git 包。
  • 从我的 Windows 环境中删除任何其他 git 安装(例如 tortoisegit)
  • 下载并安装 msysgit (http://msysgit.github.io/
  • 安装它。
  • 配置 git 以使用代理,如下所示。
  • 运行cmd。
  • 执行 git config --global http.proxy http://my.proxy.com:8080
  • 现在我们需要配置 svn 在运行 git svn 时使用代理
    克隆。否则你会得到这个错误:

    RA 层请求失败:“/svn/repos/my-project”上的 PROPFIND 请求失败:“/svn/repos/my-project”的 PROPFIND:无法连接到服务器(https://my .svn.repository.behinde.proxy.com)位于 /usr/lib/perl5/site_perl/Git/SVN.pm 第 310 行    
    

这有点棘手。为此,我们需要编辑 home 文件夹中的 /.subversion/servers 。不是 %appdata%\.subversion\servers ,不是 c:\users\userlogin\.subversion\servers 不!您需要执行下一步:

  • 运行 git bash(安装 msysGit 后)

    “开始”->所有程序 -> git-> git bash。`
    

这是一个指向 "C:\Program Files (x86)\Git\bin\sh.exe" 的链接 --在我的例子中,login -i

  • 现在您需要执行“cd”命令。
  • 现在就做

    <前><代码>ls -al

    查找.subversion文件夹

  • 现在编辑此文件夹下的文件vi .subversion/服务器
    您需要找到 [groups] 部分并将您的服务器添加到您想要建立代理连接的位置,例如:

    <前><代码>[组]
    myserver = www.some.server.com

  • 现在在同一个文件中添加如下字符串:

    <前><代码>[我的服务器]
    http-proxy-host = http[或 https]://[登录名:password_to_proxy@]my.proxy.com
    http-proxy-port = 8080你的代理端口

例如:

    [myserver]
        http-proxy-host = http://my.proxy.com
        http-proxy-port = 8080

现在您正在配置您需要的所有内容(我希望:))
现在你可以运行 cmd 并 make git svn clone https://your.repository.com/path/to/repo -s

并使用 git svn 来处理 svn ,以满足你的乐趣。 :)

I was figth with this problem for a 5 hours. I was trying to use git from cygwin. But unfortunatly...
This hucking

git-svn died signal 11

while trying to do

git svn clone http://repo.com/path/to/my/repo.git -s

really pissed me of... Addition i doing it after work being on my work place... :) We are used proxy to connect to svn repo from our network.
I was tried rebaseall... Serf internet for solving the problem... But unfortunately unlucky(Не фортануло не повезло...)...

So i decide that, i hucking, solve this problemm off!

I go to wokr in my holyday and do this:

  • Remove git package from my cygwin.
  • Remove any another git installation from my windows environment (like tortoisegit)
  • Download and install msysgit (http://msysgit.github.io/)
  • Install it.
  • Configure git to use proxy as below.
  • Run cmd.
  • execute git config --global http.proxy http://my.proxy.com:8080
  • Now we need to configure svn to use proxy when you run git svn
    clone. Or else you will get this error:

    RA layer request failed: PROPFIND request failed on '/svn/repos/my-project': PROPFIND of '/svn/repos/my-project': could not connect to server (https://my.svn.repository.behinde.proxy.com) at /usr/lib/perl5/site_perl/Git/SVN.pm line 310    
    

And this is some tricky. For it we need to edit /.subversion/servers in home folder. Not %appdata%\.subversion\servers , not c:\users\userlogin\.subversion\servers no! You need do next:

  • run git bash (that you have after installing msysGit) from

    "Start" -> all programms -> git -> Git bash.`
    

this is a link that point to "C:\Program Files (x86)\Git\bin\sh.exe" --login -i in my case

  • Now you need execute "cd" command.
  • Now do

    ls -al
    

    look for .subversion folder

  • And now edit file under this folder vi .subversion/servers
    you need to find section [groups] and add your server to what you want to made proxy connection for example:

    [groups]
        myserver = www.some.server.com
    
  • Now in same file add strings like this:

    [myserver]
        http-proxy-host = http[or https]://[login:password_to_proxy@]my.proxy.com
        http-proxy-port = 8080your proxy port
    

for example:

    [myserver]
        http-proxy-host = http://my.proxy.com
        http-proxy-port = 8080

now you are configure all you need (i hope :) )
And now you may run cmd and make git svn clone https://your.repository.com/path/to/repo -s

And work with svn using git svn for your pleasure. :)

倾城泪 2024-10-28 10:30:48

尝试运行 perl -e 'require SVN::Core;打印“$SVN::Core::VERSION\n”'。在你的情况下应该打印“1.6.15”。如果它显示错误,则可能意味着您没有安装 perl SVN 模块。尝试在 cygwin 中安装“subversion-perl”包。

Try running perl -e 'require SVN::Core; print "$SVN::Core::VERSION\n"'. That should print '1.6.15' in your case. If it spits out an error instead, it probably means that you don't have the perl SVN module installed. Try installing the 'subversion-perl' package in cygwin.

眼前雾蒙蒙 2024-10-28 10:30:48

就我而言,这是由于无法访问存储库造成的。

我必须将代理设置添加到 ~/.subversion/servers 中,以便 svn 能够查看它。

In my case it was due to not being able to reach the repository.

I had to add my proxy settings to ~/.subversion/servers to let svn be able to check it out.

罪歌 2024-10-28 10:30:48

似乎 git-svn分段错误<而崩溃/a> (这可能表明存在软件错误)。 git-svn 可执行文件只是一个普通的 Perl 脚本,因此要修复它,您有以下可能性:

  • 升级 perl 并确保它使用新版本,
  • 尝试将 git-svn 二进制文件的 shebang 更改为升级的 perl
  • 重新安装 subversion 以使用升级的绑定到 perl:

    • OS X:brew reinstall subversion --with-perl 然后brew link --overwrite subversion
    • Linux:apt-get install git-svn libsvn-perl
  • 找到其他不会崩溃的git-svn并使用它们,例如

    which -a git-svn
    找到 git-svn | grep git-svn$
    

如果您使用的是 OS X,请检查更多想法 此处

It seems git-svn crashes with Segmentation fault (that could indicate a software bug). The git-svn executable file is just a plain perl script, so to fix it you've the following possibilities:

  • upgrade perl and make sure it uses that new version,
  • try changing shebang of git-svn binary into upgraded perl,
  • re-install subversion to use upgraded bindings to perl:

    • OS X: brew reinstall subversion --with-perl thenbrew link --overwrite subversion
    • Linux: apt-get install git-svn libsvn-perl
  • locate other non-crashing git-svn and use them instead, e.g.

    which -a git-svn
    locate git-svn | grep git-svn$
    

If you're on OS X, check for more ideas here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文