diff options
author | Teddy Wing | 2021-06-23 23:20:51 +0200 |
---|---|---|
committer | Teddy Wing | 2021-06-23 23:20:51 +0200 |
commit | b0287e272376fe788fffdd0fe7d5e799f3517d6e (patch) | |
tree | 9e535e17ed621395a6bc6606fa954d8367f67a13 /src/lib.rs | |
parent | 8695d3845c154ea06a8e69dd0a4552ecc907dcb3 (diff) | |
download | reflectub-b0287e272376fe788fffdd0fe7d5e799f3517d6e.tar.bz2 |
update_mtime(): Write update time to CGit agefile as last recourse
Adjust the match arms to remove a bit of indentation.
Add some 'anyhow' context to errors for better error reporting.
When "repo/refs/heads/[default-branch]" or "repo/packed-refs" files
don't exist, create a "repo/info/web/last-modified" file and set this
file as the CGit agefile in the repo's local 'cgitrc' file.
It's possible for a repo to not have either of the first two files when
the repo is empty and has no commits.
Diffstat (limited to 'src/lib.rs')
0 files changed, 0 insertions, 0 deletions