What is causing git byte order error?

5

2

I can no longer git svn rebase (using msysgit on Windows 7).

The error starts with:

Byte order is not compatible at ../../lib/Storable.pm

And ends with:

Could not unmemoize function 'lookup_svn_merge', because it was not memoized to begin with

It may be overkill, but I've tried reinstalling the fule Git Extensions package with msysgit. I also made sure that cygwin git and/or perl aren't interfering. I seem to be stuck rebasing consistently on this one commit; before this, it was fine. A colleague who uses git-svn on Windows against the same subversion repository had no problems, so it's something specific to my development machine.

UltraNurd

Posted 2011-11-23T19:45:31.190

Reputation: 515

There's a similar Perl cache related bug recently submitted to git-svn, which they patched. Perhaps Google hasn't applied the same fix to msysgit (yet?).

– Ƭᴇcʜιᴇ007 – 2011-11-23T20:48:54.633

Answers

5

I have no explanation for why this worked, but deleting .git/svn/.caches/ fixed the problem. I guess the error message was referring to the lookup_svn_merge.db that's stored in that folder?

UltraNurd

Posted 2011-11-23T19:45:31.190

Reputation: 515

3

This is happening because of an incompatibility in data files created by Perl's Memoize::Storable across different versions of Perl.

It is safe to remove .git/svn/.caches to fix the problem.

More information can be found about the bug in Debian and the discussion of the fix.

Chris Pick

Posted 2011-11-23T19:45:31.190

Reputation: 191