git svn dcommit fails because of assertion error “svn_fspath__is_canonical(child_fspath)” (cygwin)

前端 未结 9 1765
孤城傲影
孤城傲影 2020-12-28 17:36

I hope anybody can help me.

When I try to push my local git branch to the svn server this will always result into this error:

$ git svn dcommit
Comm         


        
相关标签:
9条回答
  • 2020-12-28 18:19

    I also had this problem (git version 1.8.3) and solved it by downgrading subversion to 1.7.9 (from 1.8.0).

    0 讨论(0)
  • 2020-12-28 18:19

    An easy way to install patched version of git-svn from github:

    1. Find the buggy script:

      find /usr -name Editor.pm
      
    2. Replace it with patched version:

      cd /usr/lib/perl5/vendor_perl/5.18.1/Git/SVN
      mv Editor.pm Editor.pm.bak
      wget https://raw.github.com/git/git/2394e94e831991348688831a384b088a424c7ace/perl/Git/SVN/Editor.pm
      
    0 讨论(0)
  • 2020-12-28 18:27

    I've managed how to solve this problem w/o downgrading svn. Error msg was like this:

    git svn dcommit
    Committing to http://...
            C       File1.hpp => File2.hpp
    
    ERROR from SVN:
    RA layer request failed: PUT request on '...File2.hpp' failed: 409 Conflict...
    

    then I've rebased just before this commit, removed File1.hpp, made new commit and in next one just added File2.hpp like a new one. After this git svn dcommit wasn't complaining anymore.

    0 讨论(0)
提交回复
热议问题