Git svn rebase : checksum mismatch

前端 未结 6 915
长情又很酷
长情又很酷 2020-12-04 19:40

I have a problem when I try to do a git svn rebase on my repository. It displays :

Checksum mismatch: code/app/meta_appli/app_info.py
expected: d9cefed5d1a63         


        
6条回答
  •  情深已故
    2020-12-04 19:43

    In our practice the error "Checksum mismatch:" on .shtml files in git svn clone ... command was caused by the setup of the front-end Apache server to interpret the.shtml files (from SVN) as Server-Side Includes (SSI) and thus produce live content instead of just providing the stored file content. Disabling SSI in Apache's /etc/httpd.conf file for the period of migration by commenting out the

    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    

    directives solved the problem.
    Anyway, the migration of the repository could exclude some paths and files happens with:

    git svn clone  --ignore-paths=
    

    clause. It makes sense to check the environment of the SVN server process if those files have special interpretation like SSI (and the .php and .py files) and disable it.

提交回复
热议问题