Code

gitweb: git_annotate didn't expect negative numeric timezone
authorJakub Narebski <jnareb@gmail.com>
Sat, 26 Aug 2006 00:13:05 +0000 (02:13 +0200)
committerJunio C Hamano <junkio@cox.net>
Sat, 26 Aug 2006 07:59:29 +0000 (00:59 -0700)
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl

index 04282fa5e381c1dc156085281e8517fb69be6192..966c54a63cacf20d2a71241f738df0378e46f569 100755 (executable)
@@ -1882,7 +1882,7 @@ HTML
                chomp $line;
                $line_class_num = ($line_class_num + 1) % $line_class_len;
 
-               if ($line =~ m/^([0-9a-fA-F]{40})\t\(\s*([^\t]+)\t(\d+) \+\d\d\d\d\t(\d+)\)(.*)$/) {
+               if ($line =~ m/^([0-9a-fA-F]{40})\t\(\s*([^\t]+)\t(\d+) [+-]\d\d\d\d\t(\d+)\)(.*)$/) {
                        $long_rev = $1;
                        $author   = $2;
                        $time     = $3;