gitweb: Remove forgotten call to git_to_hash
[gitweb.git] / gitweb / gitweb.perl
index 9324d71ebe4e01a8f9985a32990acc94636008f9..68f40bda8f97f4e238d13f0a7f4ad2adafd00198 100755 (executable)
@@ -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