]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Remove workaround for git-diff bug fixed in f82cd3c
[Gitweb] / gitweb.perl
index 0c2ec7b788d9d2e149f0acc4758a8e61fcf5c85894fbc8e57ae856aa976b730b..b73af0e09c3b7261b4ad5e91cb5dabf429885a37f20eda1c4eb4580e4805e2d3 100755 (executable)
@@ -2291,7 +2291,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;
@@ -2834,8 +2834,7 @@ sub git_blobdiff {
                }
 
                # open patch output
-               #open $fd, "-|", $GIT, "diff", '-p', $hash_parent, $hash
-               open $fd, "-|", $GIT, "diff", '-p', $hash, $hash_parent
+               open $fd, "-|", $GIT, "diff", '-p', $hash_parent, $hash
                        or die_error(undef, "Open git-diff failed");
        } else  {
                die_error('404 Not Found', "Missing one of the blob diff parameters")
This page took 0.230312 seconds and 4 git commands to generate.