git svn “Checksum mismatch”

备忘,经常遇到这个情况
参考来源:https://stackoverflow.com/questions/3156744/git-svn-rebase-checksum-mismatch

报错:


git svn fetch
Checksum mismatch: xxx.xml c9a51a650f406b17df2a631d86b2ce1564f8c842
expected: 45363a393f3ceb2c5dd32da7580cb802
got: b0a09036096d04df3b897d1413686d3f

解决:

See what was the revision number of the last change on the file:
git svn log chrome/test/functional/search_engines.py
Reset svn to be closest parent before that revision:
git svn reset -r62248 -p
Do a git svn fetch!
Dance at your success.

Leave a Reply

Your email address will not be published. Required fields are marked *