Project

General

Profile

Bug #631

Idle/age time of many git repos shown by cgit are wrong

alfplayer - over 9 years ago - . Updated about 6 years ago.

Status:
fixed
Priority:
bug
Assignee:
% Done:

100%


Description

Times can be seen here: https://projects.parabola.nu/

History

#1

Updated by lukeshu over 9 years ago

cgit simply looks at the ctime (or is it mtime?) of the repository directory. Because of a chmod setting the sgid bit on directories that was run on December 4th, the farthest back time it displays is "3 weeks ago" (the 4th is 3 weeks and 2 days ago at the time of this writing). Before that, the farthest time back was the date of the last server migration.

#2

Updated by lukeshu over 9 years ago

It's ctime... the one that touch can't set to arbitrary values.

However, the timestamp checking is only a fallback if 'agefile' (info/web/last-modified by default) doesn't exist. I'm now looking into generating that file.

#3

Updated by lukeshu over 9 years ago

  • % Done changed from 0 to 90
  • Assignee set to lukeshu
  • Status changed from open to in progress

fixed: https://projects.parabola.nu/git-meta.git/commit/?id=5cc4ed0cf2cde585c4ac3199be59caedb68bef61

There needs to be an associated change in hackers.git/git-shell-commands/create-bare-repo. Until then, someone will need to run sudo -u git '~git/tidy-hooks' after someone creates a repo.

Gitolite is starting to look kinda nice right now.

#5

Updated by lukeshu about 6 years ago

  • % Done changed from 90 to 100
  • Status changed from in progress to fixed

Also available in: Atom PDF