mirror of
https://github.com/git/git.git
synced 2026-02-07 08:15:23 +00:00
Update SVN.pm
fix parsing error for dates like: 2014-01-07T5:58:36.048176Z previous regex can parse only: 2014-01-07T05:58:36.048176Z reproduced in my svn repository during conversion.
This commit is contained in:
committed by
Johannes Schindelin
parent
3f6e275818
commit
49034e1658
@@ -1321,7 +1321,7 @@ sub get_untracked {
|
||||
sub parse_svn_date {
|
||||
my $date = shift || return '+0000 1970-01-01 00:00:00';
|
||||
my ($Y,$m,$d,$H,$M,$S) = ($date =~ /^(\d{4})\-(\d\d)\-(\d\d)T
|
||||
(\d\d)\:(\d\d)\:(\d\d)\.\d*Z$/x) or
|
||||
(\d\d?)\:(\d\d)\:(\d\d)\.\d*Z$/x) or
|
||||
croak "Unable to parse date: $date\n";
|
||||
my $parsed_date; # Set next.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user