summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-08-01 02:36:50 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-01 02:36:50 (GMT)
commit498934a7e5410b815a9089c1b5205271d73e0f11 (patch)
treeb04b08dff495b5b893158d3a24b5c9e845abeb3c /gitweb
parent46b059d718777ab146b8089afd3d2fcdd6000154 (diff)
downloadgit-498934a7e5410b815a9089c1b5205271d73e0f11.zip
git-498934a7e5410b815a9089c1b5205271d73e0f11.tar.gz
git-498934a7e5410b815a9089c1b5205271d73e0f11.tar.bz2
gitweb: when showing history of a tree, show tree link not blob
Otherwise clicking on that erroneous blob link would produce nonsense. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index f65b5d5..3cd4ce2 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -2303,7 +2303,7 @@ sub git_history {
"<td class=\"link\">" .
$cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$commit")}, "commit") .
" | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commitdiff;h=$commit")}, "commitdiff") .
- " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=blob;hb=$commit;f=$file_name")}, "blob");
+ " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=$ftype;hb=$commit;f=$file_name")}, $ftype);
my $blob = git_get_hash_by_path($hash_base, $file_name);
my $blob_parent = git_get_hash_by_path($commit, $file_name);
if (defined $blob && defined $blob_parent && $blob ne $blob_parent) {