2012-03-21 88 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