path: root/perl/Git
diff options
authorRomanBelinsky <>2014-02-11 16:23:02 (GMT)
committerJunio C Hamano <>2014-04-17 18:01:26 (GMT)
commit784f4b6f33afb439a3d95e5751731a88df545889 (patch)
tree0c809667598ee0579cdce5c7ba0d23997046b7db /perl/Git
parent0bc85abb7aa9b24b093253018801a0fb43d01122 (diff)
git-784f4b6f33afb439a3d95e5751731a88df545889.tar.bz2 allow timestamps with a single-digit hour
Some broken subversion server gives timestamps with only one digit in the hour part, like this: 2014-01-07T5:01:02.048176Z Loosen the regexp that expected to see two-digit hour, minute and second parts to accept a single-digit hour (but not minute or second). Signed-off-by: Stepan Kasal <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'perl/Git')
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/Git/ b/perl/Git/
index a59564f..09cff13 100644
--- a/perl/Git/
+++ b/perl/Git/
@@ -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.