]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Remove forgotten call to git_to_hash
authorDennis Stosberg <redacted>
Thu, 31 Aug 2006 19:32:45 +0000 (21:32 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
On Aug 27th, Jakub Narebski sent a patch which removed the git_to_hash()
function and this call to it. The patch did not apply cleanly and had to
be applied manually. Removing the last chunk has obviously been forgotten.

See: commit  0aea33762b1262d11fb43eda9f3fc152b5622cca and
     message <redacted>

Signed-off-by: Dennis Stosberg <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 2701317afbed067c82cc1237046d6dfe429da68b51b420fc94d3f3fdde15e9be..8ce16d3b1fb8c2a88403064420d2df95580ec55fb8c4bbca7ea0dd567a984b66 100755 (executable)
@@ -2778,10 +2778,6 @@ sub git_blobdiff {
                        @difftree
                                or die_error('404 Not Found', "Blob diff not found");
 
                        @difftree
                                or die_error('404 Not Found', "Blob diff not found");
 
-               } elsif (defined $hash) { # try to find filename from $hash
-                       if ($hash !~ /[0-9a-fA-F]{40}/) {
-                               $hash = git_to_hash($hash);
-                       }
                } elsif (defined $hash &&
                         $hash =~ /[0-9a-fA-F]{40}/) {
                        # try to find filename from $hash
                } elsif (defined $hash &&
                         $hash =~ /[0-9a-fA-F]{40}/) {
                        # try to find filename from $hash
This page took 0.304556 seconds and 4 git commands to generate.