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 <200608272345.26722.jnareb@gmail.com> Signed-off-by: Dennis Stosberg <dennis@stosberg.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Dennis Stosberg committed
Aug 31, 2006 at 21:32 UTC
3a36bc846949df8a7fb0ad9b2fc8ffe294cdca7c
1 file changed
-4
gitweb/gitweb.perl
-4
@@ -2778,10 +2778,6 @@ sub git_blobdiff {
2778
@difftree
2779
or die_error('404 Not Found', "Blob diff not found");
2780
2781
- } elsif (defined $hash) { # try to find filename from $hash
2782
- if ($hash !~ /[0-9a-fA-F]{40}/) {
2783
- $hash = git_to_hash($hash);
2784
- }
2781
} elsif (defined $hash &&
2782
$hash =~ /[0-9a-fA-F]{40}/) {
2783
# try to find filename from $hash