git svn - error under cygwin

后端 未结 4 1963
忘掉有多难
忘掉有多难 2021-02-05 08:32

I have cygwin and git. I\'m trying to commit with git to svn - git svn dcommit. But it fails with strange error:

$ git svn dcommit
      4 [main] perl 55         


        
4条回答
  •  抹茶落季
    2021-02-05 08:47

    The above answers didn't result in a reliable fix to the problem of running cygwin git on 64bit Windows (Windows 7) for our team. I posted a question on the git mailing this and got this response from Pascal Obry:

    Jon,

    This is a known issue. I have since a long time left Windows world but I still have some notes to "fix" this:

    From the ash shell (be sure that no Cygwin process are still running):

    $ rebaseall

    $ peflagsall

    Try your command again. If it still doesn't work, try instead: $ rebaseall -b 0x50000000 -o 0x80000 or -b 0xNNNN0000 where NNNN is any hex number between 2000 and 7000. The -o option tell to leave more space between the dlls, it may also help. It did in my case.

    If you are curious, look at /usr/share/doc/Cygwin/rebase-3.0.README for more explanation.

    See also: http://www.spinics.net/lists/git/msg183753.html

    Pascal also noted in a followup that:

    ... the most important part is running peflagsall, this was the way to fix that properly on Win7 IIRC.

    Initial, but not definitive, results suggest this solution is working better than the other suggestions documented here. I will update this post in a week or so to indicate whether this recipe is sufficient to gain a permanent and reliable solution.

提交回复
热议问题