通过git svn克隆单个SVN分支的问题 [英] Problem cloning a single SVN Branch via git svn

查看:220
本文介绍了通过git svn克隆单个SVN分支的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SVN Repository上试过以下命令,通过git克隆一个分支。

://svn.supose.org/supose/branches/B_0.7.1

但是得到以下错误消息:

pre $ 在/Users/km/workspace-supose/git/B_0.7.1/.git/中初始化空的Git存储库
W:忽略来自SVN的错误,路径可能不存在:(160013):Filesystem没有项目:'/supose/!svn/bc/100/branches/B_0.7.1'找不到路径
W:不要对上面的消息感到震惊git-svn只是在积极寻找旧的历史。
这可能需要一段时间在大型软件仓库
错误:git-svn死于信号10
mac:git km $


mac:git km $ git --version
git version 1.7.1

有人知道什么是出错了?



更新:
我通过环境变量启用了跟踪。试过了,它也失败了。更新到git 1.7.2,结果相同。

  mac:git km $ git svn clone http://svn.supose .org / supose / branches / B_0.7.1 
trace:exec:'git-svn''clone''http://svn.supose.org/supose/branches/B_0.7.1'
trace :run_command:'git-svn''clone''http://svn.supose.org/supose/branches/B_0.7.1'
trace:built-in:git'config''--bool'' --get''svn.noauthcache'
trace:内置:git'config''--bool''--get''svn.nometadata'
trace:built-in:git' config''--get''svn.revision'
trace:built-in:git'config''--get''svn.rewriteuuid'
trace:built-in:git'config' '--bool'' - get''svn.usesvmprops'
trace:built-in:git'config''--bool''--get''svn.nocheckout'
trace:内置:git'config''--get''svn.authorsprog'
trace:built-in:git'config''--bool''--get-all''svn.branches'
trace:b uint-in:git'config''--bool''--get''svn.usesvnsyncprops'
trace:built-in:git'config''--bool''--get'svn。后续'
trace:内置:git'config''--get''svn.prefix'
trace:内置:git'config''--bool''--get' 'svn.useSvmProps'
trace:built-in:git'config''--get''svn.authorsfile'
trace:built-in:git'config''--get''svn .username'
trace:built-in:git'config''--bool''--get''svn.stdlayout'
trace:built-in:git'config''--get 'svn.repackflags'
trace:built-in:git'config''--bool''--get''svn.localtime'
trace:built-in:git'config'' --int''--get''svn.repack'
trace:built-in:git'config''--get''svn.template'
trace:built-in:git' config''--get''svn.ignorepaths'
trace:built-in:git'config''--bool''--get''svn.mini mizeurl'
trace:built-in:git'config''--get''svn.rewriteroot'
trace:built-in:git'config''--bool''--get' 'svn.quiet'
trace:内置:git'config''--int''--get''svn.logwindowsize'
trace:内置:git'config'' - -get''svn.shared'
trace:built-in:git'config''--get''svn.configdir'
trace:built-in:git'config''--bool '''' - ''svn.addauthorfrom'
trace:built-in:git'config''--bool''--get''svn.noMetadata'
trace:built-in: git'config''--bool''--get''svn.useSvnsyncProps'
trace:built-in:git'config''--bool''--get-all''svn.tags'
trace:内置:git'config''--get''svn.trunk'
trace:内置:git'config''--bool''--get'svn .uselogauthor'
trace:built-in:git'init'
/ Users / km / workspace-supose / git / B中初始化的空Git存储库_0.7.1 / .git /
trace:内置:git'config''--bool''svn.useSvmProps'
trace:内置:git'config''-l'
trace:内置:git'config''--get''svn-remote.svn.url'
trace:内置:git'config''-l'
trace :内置:git'config''svn-remote.svn.url''http://svn.supose.org/supose/branches/B_0.7.1'
trace:built-in:git'config ''--add'svn-remote.svn.fetch'':refs / remotes / git-svn'
trace:built-in:git'config''--bool''svn.useSvmProps'
trace:内置:git'config''-l'
trace:内置:git'config''--get''svn-remote.svn.fetch'':refs / remotes / git-svn $'
trace:built-in:git'config''--get''svn-remote.svn.url'
trace:built-in:git'config'' - -get''svn-remote.svn.uuid'
trace:built-in:git'config''svn-remote.svn.reposRoot''http://svn.supose.org/supose'
trace:内置:git'con图'' - ''svn-remote.svn.usesvmprops'
trace:内置:git'config''--add''svn-remote.svn.uuid''d38d36a4-06d2-11df -b1fb-6b773c2c1a53'
W:忽略来自SVN的错误,路径可能不存在:(160013):Filesystem没有项目:'/supose/!svn/bc/100/branches/B_0.7.1'路径不发现
W:不要对上述消息感到担忧git-svn只是在积极地搜索旧的历史。
这可能需要一段时间才能在大型存储库
trace:built-in:git'config''--get''svn-remote.svn.nometadata'
trace:built-in: git'config''--get''svn-remote.svn.followparent'
trace:built-in:git'config''--bool''--get''svn.brokenSymlinkWorkaround'
trace:built-in:git'config''--get''svn-remote.svn.ignore-paths'
trace:built-in:git'update-index''-z'' - index-info'
trace:内置:git'config''svn-remote.svn.reposRoot''http://svn.supose.org/supose'
错误:git-svn死亡的信号10


解决方案

git- svn 实际上是一个Perl脚本。 git 可执行文件本身就是一个启动其他程序的程序。 死于信号消息来自 git 启动器。信号10通常是 SIGBUS。这可能意味着很多事情:


  • Perl存在问题

  • 与Subversion Perl绑定有关的问题

  • Subversion客户端存在问题



可能意味着你遇到了 git-svn 中的一个错误,但是这看起来很不可能(Perl脚本中的错误应该是 >从来没有导致Perl总线错误)。



我会检查所有上述版本,并验证它们是否相互兼容。 / p>

I have tried the following command on my SVN Repository to clone only a single branch via git.

git svn clone  http://svn.supose.org/supose/branches/B_0.7.1

but got the the following error message:

Initialized empty Git repository in /Users/km/workspace-supose/git/B_0.7.1/.git/
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no    item: '/supose/!svn/bc/100/branches/B_0.7.1' 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
error: git-svn died of signal 10
mac:git km$ 


mac:git km$ git --version
git version 1.7.1

Does someone has an idea what is going wrong ?

Update: I turned on trace via environment variable. Tried it and it failed as well. Updated to git 1.7.2 with the same result.

mac:git km$ git svn clone  http://svn.supose.org/supose/branches/B_0.7.1
trace: exec: 'git-svn' 'clone' 'http://svn.supose.org/supose/branches/B_0.7.1'
trace: run_command: 'git-svn' 'clone' 'http://svn.supose.org/supose/branches/B_0.7.1'
trace: built-in: git 'config' '--bool' '--get' 'svn.noauthcache'
trace: built-in: git 'config' '--bool' '--get' 'svn.nometadata'
trace: built-in: git 'config' '--get' 'svn.revision'
trace: built-in: git 'config' '--get' 'svn.rewriteuuid'
trace: built-in: git 'config' '--bool' '--get' 'svn.usesvmprops'
trace: built-in: git 'config' '--bool' '--get' 'svn.nocheckout'
trace: built-in: git 'config' '--get' 'svn.authorsprog'
trace: built-in: git 'config' '--bool' '--get-all' 'svn.branches'
trace: built-in: git 'config' '--bool' '--get' 'svn.usesvnsyncprops'
trace: built-in: git 'config' '--bool' '--get' 'svn.followparent'
trace: built-in: git 'config' '--get' 'svn.prefix'
trace: built-in: git 'config' '--bool' '--get' 'svn.useSvmProps'
trace: built-in: git 'config' '--get' 'svn.authorsfile'
trace: built-in: git 'config' '--get' 'svn.username'
trace: built-in: git 'config' '--bool' '--get' 'svn.stdlayout'
trace: built-in: git 'config' '--get' 'svn.repackflags'
trace: built-in: git 'config' '--bool' '--get' 'svn.localtime'
trace: built-in: git 'config' '--int' '--get' 'svn.repack'
trace: built-in: git 'config' '--get' 'svn.template'
trace: built-in: git 'config' '--get' 'svn.ignorepaths'
trace: built-in: git 'config' '--bool' '--get' 'svn.minimizeurl'
trace: built-in: git 'config' '--get' 'svn.rewriteroot'
trace: built-in: git 'config' '--bool' '--get' 'svn.quiet'
trace: built-in: git 'config' '--int' '--get' 'svn.logwindowsize'
trace: built-in: git 'config' '--get' 'svn.shared'
trace: built-in: git 'config' '--get' 'svn.configdir'
trace: built-in: git 'config' '--bool' '--get' 'svn.addauthorfrom'
trace: built-in: git 'config' '--bool' '--get' 'svn.noMetadata'
trace: built-in: git 'config' '--bool' '--get' 'svn.useSvnsyncProps'
trace: built-in: git 'config' '--bool' '--get-all' 'svn.tags'
trace: built-in: git 'config' '--get' 'svn.trunk'
trace: built-in: git 'config' '--bool' '--get' 'svn.uselogauthor'
trace: built-in: git 'init'
Initialized empty Git repository in /Users/km/workspace-supose/git/B_0.7.1/.git/
trace: built-in: git 'config' '--bool' 'svn.useSvmProps'
trace: built-in: git 'config' '-l'
trace: built-in: git 'config' '--get' 'svn-remote.svn.url'
trace: built-in: git 'config' '-l'
trace: built-in: git 'config' 'svn-remote.svn.url' 'http://svn.supose.org/supose/branches/B_0.7.1'
trace: built-in: git 'config' '--add' 'svn-remote.svn.fetch' ':refs/remotes/git-svn'
trace: built-in: git 'config' '--bool' 'svn.useSvmProps'
trace: built-in: git 'config' '-l'
trace: built-in: git 'config' '--get' 'svn-remote.svn.fetch' ':refs/remotes/git-svn$'
trace: built-in: git 'config' '--get' 'svn-remote.svn.url'
trace: built-in: git 'config' '--get' 'svn-remote.svn.uuid'
trace: built-in: git 'config' 'svn-remote.svn.reposRoot' 'http://svn.supose.org/supose'
trace: built-in: git 'config' '--get' 'svn-remote.svn.usesvmprops'
trace: built-in: git 'config' '--add' 'svn-remote.svn.uuid' 'd38d36a4-06d2-11df-b1fb-6b773c2c1a53'
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: '/supose/!svn/bc/100/branches/B_0.7.1' 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
trace: built-in: git 'config' '--get' 'svn-remote.svn.nometadata'
trace: built-in: git 'config' '--get' 'svn-remote.svn.followparent'
trace: built-in: git 'config' '--bool' '--get' 'svn.brokenSymlinkWorkaround'
trace: built-in: git 'config' '--get' 'svn-remote.svn.ignore-paths'
trace: built-in: git 'update-index' '-z' '--index-info'
trace: built-in: git 'config' 'svn-remote.svn.reposRoot' 'http://svn.supose.org/supose'
error: git-svn died of signal 10

解决方案

git-svn is actually a Perl script. The git executable itself is really just a program that launches other programs. The "died of signal" message is coming from the git launcher. Signal 10 is usually SIGBUS. This could mean a number of things:

  • There is a problem with Perl
  • There is a problem with the Subversion Perl bindings
  • There is a problem with the Subversion client

It also might mean there's a bug in git-svn that you've encountered, but that seems highly unlikely (a bug in a Perl script should never cause Perl to bus error).

I would check the versions of all of the above and verify that they are all compatible with each other.

这篇关于通过git svn克隆单个SVN分支的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆