aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.rs
diff options
context:
space:
mode:
authorTeddy Wing2021-05-30 23:34:06 +0200
committerTeddy Wing2021-05-30 23:34:06 +0200
commitc88dc471fae44101a7029341a1c7311e105f8a72 (patch)
treece37d91179a3770efe9df3d9c2ccb0afc6110b4b /src/database.rs
parent94dc9d677ba0f25261f55b17f38b16a4b9d712af (diff)
downloadreflectub-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 'src/database.rs')
0 files changed, 0 insertions, 0 deletions