We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e1e9c5 + e305ccc commit 6c2f69dCopy full SHA for 6c2f69d
perl/Git/SVN.pm
@@ -1585,6 +1585,11 @@ sub tie_for_persistent_memoization {
1585
if ($memo_backend > 0) {
1586
tie %$hash => 'Git::SVN::Memoize::YAML', "$path.yaml";
1587
} else {
1588
+ # first verify that any existing file can actually be loaded
1589
+ # (it may have been saved by an incompatible version)
1590
+ if (-e "$path.db") {
1591
+ unlink "$path.db" unless eval { retrieve("$path.db"); 1 };
1592
+ }
1593
tie %$hash => 'Memoize::Storable', "$path.db", 'nstore';
1594
}
1595
0 commit comments