gitweb: when showing history of a tree, show tree link not blob
authorJunio C Hamano <junkio@cox.net>
Tue, 1 Aug 2006 02:36:50 +0000 (19:36 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 1 Aug 2006 02:36:50 +0000 (19:36 -0700)
Otherwise clicking on that erroneous blob link would produce nonsense.

Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.cgi

index f65b5d5ce2b53250bc34ad6dba311b873b5d29e0..3cd4ce2a01e36b3e651769dcbff16776a0645f4b 100755 (executable)
@@ -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) {