summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a3240b)
raw | patch | inline | side by side (parent: 2a3240b)
author | Jakub Narebski <jnareb@gmail.com> | |
Wed, 3 Jan 2007 21:54:29 +0000 (22:54 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 5 Jan 2007 07:19:09 +0000 (23:19 -0800) |
Fix "Use of uninitialized value" warning in git_tags_body generated
for lightweight tags of tree and blob object; those don't have age
($tag{'age'}) defined.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
for lightweight tags of tree and blob object; those don't have age
($tag{'age'}) defined.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 21790542863b24a9d8d4928c7d0b14bbfdd94c8a..fd671f3eb2b3d780aa80e6e246bf82daeda91556 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
print "<tr class=\"light\">\n";
}
$alternate ^= 1;
- print "<td><i>$tag{'age'}</i></td>\n" .
- "<td>" .
+ if (defined $tag{'age'}) {
+ print "<td><i>$tag{'age'}</i></td>\n";
+ } else {
+ print "<td></td>\n";
+ }
+ print "<td>" .
$cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'}),
-class => "list name"}, esc_html($tag{'name'})) .
"</td>\n" .