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>
Junio C Hamano committed
Jul 31, 2006 at 19:36 UTC
498934a7e5410b815a9089c1b5205271d73e0f11
1 file changed
+1
-1
gitweb/gitweb.cgi
+1
-1
@@ -2303,7 +2303,7 @@ sub git_history {
2303
"<td class=\"link\">" .
2304
$cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$commit")}, "commit") .
2305
" | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commitdiff;h=$commit")}, "commitdiff") .
2306
- " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=blob;hb=$commit;f=$file_name")}, "blob");
2306
+ " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=$ftype;hb=$commit;f=$file_name")}, $ftype);
2307
my $blob = git_get_hash_by_path($hash_base, $file_name);
2308
my $blob_parent = git_get_hash_by_path($commit, $file_name);
2309
if (defined $blob && defined $blob_parent && $blob ne $blob_parent) {