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

前端 未结 9 1838
孤城傲影
孤城傲影 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:04

    diff -u  /usr/local/lib/perl5/site_perl/5.16/Git/SVN/Editor.pm.bak  /usr/local/lib/perl5/site_perl/5.16/Git/SVN/Editor.pm    
    --- /usr/local/lib/perl5/site_perl/5.16/Git/SVN/Editor.pm.bak   2014-01-20 15:52:54.000000000 +0100
    +++ /usr/local/lib/perl5/site_perl/5.16/Git/SVN/Editor.pm       2014-01-20 15:55:16.000000000 +0100
    @@ -304,8 +304,9 @@
            my ($self, $m, $deletions) = @_;
            my ($dir, $file) = split_path($m->{file_b});
            my $pbat = $self->ensure_path($dir, $deletions);
    +       my $upa= $self->url_path($m->{file_a});
            my $fbat = $self->add_file($self->repo_path($m->{file_b}), $pbat,
    -                               $self->url_path($m->{file_a}), $self->{r});
    +                               $upa, $self->{r});
            print "\tC\t$m->{file_a} => $m->{file_b}\n" unless $::_q;
            $self->chg_file($fbat, $m);
            $self->close_file($fbat,undef,$self->{pool});
    @@ -323,8 +324,9 @@
            my ($self, $m, $deletions) = @_;
            my ($dir, $file) = split_path($m->{file_b});
            my $pbat = $self->ensure_path($dir, $deletions);
    +       my $upa= $self->url_path($m->{file_a});
            my $fbat = $self->add_file($self->repo_path($m->{file_b}), $pbat,
    -                               $self->url_path($m->{file_a}), $self->{r});
    +                               $upa, $self->{r});
            print "\tR\t$m->{file_a} => $m->{file_b}\n" unless $::_q;
            $self->apply_autoprops($file, $fbat);
            $self->chg_file($fbat, $m);
    

提交回复
热议问题