gitweb: Fix "Use of unitialized value" warnings in empty repository
commit785cdea9befecc63b2b576c8042c5482fbf7bceb
authorJakub Narebski <jnareb@gmail.com>
Sun, 13 May 2007 10:39:22 +0000 (13 12:39 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 14 May 2007 01:22:54 +0000 (13 18:22 -0700)
treeed5054165261ece486782b0b88af7b862d360d38
parent43d151a1b087db22e2f9a754772b469de1194f67
gitweb: Fix "Use of unitialized value" warnings in empty repository

Fix it so gitweb doesn't write "Use of unitialized value..." warnings
(which gets written in web server logs) for empty (no commits)
repository.

In empty repository "last change" (last activity) doesn't make sense;
also there is no sense in parsing commits which aren't there.

In projects list for empty repositories gitweb now writes "No commits"
using "noage" class, instead of leaving cell empty, in the last change
column.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl