summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 498934a)
raw | patch | inline | side by side (parent: 498934a)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 1 Aug 2006 04:00:16 +0000 (21:00 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 1 Aug 2006 04:00:58 +0000 (21:00 -0700) |
The function unconditionally tried to match $type but some
callers did not pass it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
callers did not pass it.
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 3cd4ce2a01e36b3e651769dcbff16776a0645f4b..9dc300d45029e18b31c8ece2713e7f311942f230 100755 (executable)
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
if (!defined $name) {
print "<div class=\"page_path\"><b>/</b></div>\n";
- } elsif ($type =~ "blob") {
+ } elsif (defined $type && $type eq 'blob') {
print "<div class=\"page_path\"><b>" .
$cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=blob_plain;f=$file_name")}, esc_html($name)) . "</b><br/></div>\n";
} else {
" | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=blame;f=$file_name")}, "head");
git_page_nav('','', $hash_base,$co{'tree'},$hash_base, $formats_nav);
git_header_div('commit', esc_html($co{'title'}), $hash_base);
- git_print_page_path($file_name);
+ git_print_page_path($file_name, 'blob');
print "<div class=\"page_body\">\n";
print <<HTML;
<table class="blame">
if (defined $file_name) {
$base = esc_html("$file_name/");
}
- git_print_page_path($file_name);
+ git_print_page_path($file_name, 'tree');
print "<div class=\"page_body\">\n";
print "<table cellspacing=\"0\">\n";
my $alternate = 0;