2012-03-21 36 views
1

我一直在使用git svn远程SVN存储库一段时间,没有任何问题。有一天,我输入git svn fetch,并得到以下索引不匹配错误。我在this question尝试了解决方案,但没有奏效。执行'git svn fetch'时发现索引不匹配错误

这里的错误:

$ git svn fetch 
W: Ignoring error from SVN, path probably does not exist: (175002): RA layer request failed: REPORT request failed on '/clients/!svn/bc/50511/foo/devsite': REPORT of '/clients/!svn/bc/50511/foo/devsite': 200 OK (https://svn.example.com) 
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 
Index mismatch: 2b1371fbceb67b54e6afb805bcc65483e7eb381a != 99c95d43e7a473492b738ccc1f413911c43f195e 
rereading c69879814b55f39121372a395fe15896e749b46a 
     M  trunk/email-landing/landing-looking.html 
     M  trunk/email-landing/landing-nurture.html 
     A  trunk/email-landing/images/register-now-screenshot.png 
     A  trunk/email-landing/images/dark-checkmark.png 
     A  trunk/email-landing/images/logo.jpg 
     A  trunk/email-landing/images/logo.png 
     M  trunk/email-landing/landing-event.html 
RA layer request failed: REPORT request failed on '/clients/!svn/vcc/default': REPORT of '/clients/!svn/vcc/default': 200 OK (https://svn.example.com) at C:\Program Files (x86)\Git/libexec/git-core\git-svn line 5653 

编辑:我曾尝试重新安装cygwin的(因此混帐SVN)。我也尝试通过git svn clone克隆一个新的存储库 - 同样的错误。

回答

1

尽管重新安装,您的配置文件可能保持不变。查看你的.gitconfig文件,并在你的Subversion路径中查找错误。还要确保.gitconfig中的“fetch”参数指向正确的分支。

此外,通过错误去..在混帐svn的文件行5653是:

($ full_url =〜M#^ HTTPS://#& &

因此,错误必须在svn url

+0

存储库的'.git/config'文件中的svn URL是正确的,实际上它似乎连接到服务器,我也尝试克隆一个全新的存储库,我的'〜/ .gitconfig'文件只有'name'和'email'设置。其他想法? – 2012-03-21 17:42:27

+0

尝试并通过使用其他用户帐户获取/克隆系统,只是为了消除任何本地配置文件设置腐败(如果您的回购允许!)。 – caveman 2012-03-21 18:03:03