]> Lady’s Gitweb - Gitweb/commit
gitweb: Fix "Use of unitialized value" warnings in empty repository
authorJakub Narebski <redacted>
Sun, 13 May 2007 10:39:22 +0000 (12:39 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
commit7fc1fc1c208275728e59ce86b66db472832cf1102472667917a31022d0947579
tree775352ee3bbc3d8ed07f2e3e9402d5d3d987c93e47bfc89e3df74e86c98cff08
parent8689035ae762ebf2a2fef1b1d88ffd13a042cfc228b8d756ea0a39dc6f9a957d
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.079674 seconds and 4 git commands to generate.