aboutsummaryrefslogtreecommitdiffstats
path: root/src/github.rs
diff options
context:
space:
mode:
authorTeddy Wing2021-06-23 23:20:51 +0200
committerTeddy Wing2021-06-23 23:20:51 +0200
commitb0287e272376fe788fffdd0fe7d5e799f3517d6e (patch)
tree9e535e17ed621395a6bc6606fa954d8367f67a13 /src/github.rs
parent8695d3845c154ea06a8e69dd0a4552ecc907dcb3 (diff)
downloadreflectub-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/github.rs')
0 files changed, 0 insertions, 0 deletions