From: Dennis Stosberg Date: Thu, 31 Aug 2006 19:32:45 +0000 (+0200) Subject: gitweb: Remove forgotten call to git_to_hash X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/63fb999f54d3a494f11a03356f48d7e200cd2bcb2299859caee1088a49cba924?ds=inline gitweb: Remove forgotten call to git_to_hash 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 Signed-off-by: Dennis Stosberg Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 2701317..8ce16d3 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -2778,10 +2778,6 @@ sub git_blobdiff { @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