diff options
author | Teddy Wing | 2021-05-30 23:34:06 +0200 |
---|---|---|
committer | Teddy Wing | 2021-05-30 23:34:06 +0200 |
commit | c88dc471fae44101a7029341a1c7311e105f8a72 (patch) | |
tree | ce37d91179a3770efe9df3d9c2ccb0afc6110b4b /TODO | |
parent | 94dc9d677ba0f25261f55b17f38b16a4b9d712af (diff) | |
download | reflectub-c88dc471fae44101a7029341a1c7311e105f8a72.tar.bz2 |
Set repository mtime to GitHub `updated_at` time
CGit reads the repository modification time from the following
locations, in order from top to bottom:
1. agefile
2. repo.git/refs/heads/{default_branch | "master"}
3. repo.git/packed-refs
(https://git.zx2c4.com/cgit/tree/ui-repolist.c?id=bd6f5683f6cde4212364354b3139c1d521f40f39#n35)
Update the `/refs/heads/{default_branch}` file mtime when cloning and
updating the repo to match the GitHub `updated_at` time.
This ensures that when mirroring old repositories, they don't appear at
the top of the CGit repository index list when sorting by age.
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions