summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-26 11:50:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-01-28 22:13:54 (GMT)
commit2757b54d469783ea9eac3ba366c4ffaa194c990d (patch)
tree7ad80114dac45d29e92f76fc0c085eaf80985624
parent0cf31285a0e1a40745eb2a91534f6e6b54df0e2f (diff)
downloadgit-2757b54d469783ea9eac3ba366c4ffaa194c990d.zip
git-2757b54d469783ea9eac3ba366c4ffaa194c990d.tar.gz
git-2757b54d469783ea9eac3ba366c4ffaa194c990d.tar.bz2
gitweb: last-modified time should be commiter, not author
The last-modified time header added by RSS to increase cache hits from readers should be set to the date the repository was last modified. The author time in this respect is not a good guess because the last commit might come from a oldish patch. Use the committer time for the last-modified header to ensure a more correct guess of the last time the repository was modified. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 756868a..8c49c75 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -6015,7 +6015,7 @@ sub git_feed {
}
if (defined($commitlist[0])) {
%latest_commit = %{$commitlist[0]};
- %latest_date = parse_date($latest_commit{'author_epoch'});
+ %latest_date = parse_date($latest_commit{'committer_epoch'});
print $cgi->header(
-type => $content_type,
-charset => 'utf-8',