]> git.ipfire.org Git - thirdparty/git.git/blobdiff - contrib/examples/git-svnimport.perl
Merge branch 'rv/grep-cleanup'
[thirdparty/git.git] / contrib / examples / git-svnimport.perl
index c414f0d9c7ecfac7074d0e052c19f73cae4344d1..75a43e23b6138754e7dc780aa3a643be38e1ba14 100755 (executable)
@@ -238,7 +238,7 @@ sub pdate($) {
        my($d) = @_;
        $d =~ m#(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)#
                or die "Unparseable date: $d\n";
-       my $y=$1; $y-=1900 if $y>1900;
+       my $y=$1; $y+=1900 if $y<1000;
        return timegm($6||0,$5,$4,$3,$2-1,$y);
 }