Skip to content

Commit

Permalink
gitweb: Remove forgotten call to git_to_hash
Browse files Browse the repository at this point in the history
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  0aea337 and
     message <200608272345.26722.jnareb@gmail.com>

Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Dennis Stosberg authored and Junio C Hamano committed Aug 31, 2006
1 parent fc1c75e commit 3a36bc8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a36bc8

Please sign in to comment.