git svn 克隆在 cygwin 下死于信号 11
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我在这里找到了一个很好的提示:
http://pwizardry.com/devlog/index.cgi/2010/03/29#svn2git< /a>
我遇到了同样的问题,该解决方案似乎对我有用。
I found a good tip here:
http://pwizardry.com/devlog/index.cgi/2010/03/29#svn2git
I had the same issue, and the solution seems to work for me.
我和这个问题斗争了5个小时。我试图使用 cygwin 中的 git 。但不幸的是...
这种行为
尝试做的时候的
真的让我很生气...另外,我是在工作地点下班后做的...:)我们使用代理从我们的网络连接到 svn 存储库。
我尝试过rebaseall...农奴互联网来解决问题...但不幸的是不幸的是(Не фортануло не повезло...)...
所以我决定,我哈喽,解决这个问题!
我在我的节日去 wokr 并执行以下操作:
git config --global http.proxy http://my.proxy.com:8080
现在我们需要配置 svn 在运行 git svn 时使用代理
克隆。否则你会得到这个错误:
这有点棘手。为此,我们需要编辑
home
文件夹中的/.subversion/servers
。不是%appdata%\.subversion\servers
,不是c:\users\userlogin\.subversion\servers
不!您需要执行下一步:运行 git bash(安装 msysGit 后)
这是一个指向
"C:\Program Files (x86)\Git\bin\sh.exe" 的链接 --在我的例子中,login -i
现在就做
<前><代码>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你的代理端口
例如:
现在您正在配置您需要的所有内容(我希望:))
现在你可以运行 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
while trying to do
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:
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:
And this is some tricky. For it we need to edit
/.subversion/servers
inhome
folder. Not%appdata%\.subversion\servers
, notc:\users\userlogin\.subversion\servers
no! You need do next:run git bash (that you have after installing msysGit) from
this is a link that point to
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
in my caseNow do
look for
.subversion
folderAnd 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:Now in same file add strings like this:
for example:
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. :)
尝试运行 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.就我而言,这是由于无法访问存储库造成的。
我必须将代理设置添加到
~/.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.似乎
git-svn
因分段错误<而崩溃/a> (这可能表明存在软件错误)。git-svn
可执行文件只是一个普通的 Perl 脚本,因此要修复它,您有以下可能性:perl
并确保它使用新版本,git-svn
二进制文件的 shebang 更改为升级的perl
,重新安装
subversion
以使用升级的绑定到 perl:brew reinstall subversion --with-perl
然后brew link --overwrite subversion
apt-get install git-svn libsvn-perl
找到其他不会崩溃的
git-svn
并使用它们,例如如果您使用的是 OS X,请检查更多想法 此处。
It seems
git-svn
crashes with Segmentation fault (that could indicate a software bug). Thegit-svn
executable file is just a plain perl script, so to fix it you've the following possibilities:perl
and make sure it uses that new version,git-svn
binary into upgradedperl
,re-install
subversion
to use upgraded bindings to perl:brew reinstall subversion --with-perl
thenbrew link --overwrite subversion
apt-get install git-svn libsvn-perl
locate other non-crashing
git-svn
and use them instead, e.g.If you're on OS X, check for more ideas here.