summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 46b059d)
raw | patch | inline | side by side (parent: 46b059d)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 1 Aug 2006 02:36:50 +0000 (19:36 -0700) | ||
committer | Junio 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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.cgi | patch | blob | history |
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index f65b5d5ce2b53250bc34ad6dba311b873b5d29e0..3cd4ce2a01e36b3e651769dcbff16776a0645f4b 100755 (executable)
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
"<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) {