Univention Bugzilla – Bug 55550
No last updated line in the HTML builds because of too shallow git repository during build
Last modified: 2023-02-01 06:44:35 CET
The GitLab build process uses a shallow Git repository per default. When the build process can't determine the last change to a file from the git repository, the HTML build doesn't have a last updated line for that page. The HTML build job needs to use a full clone of the repository to determine the timestamp.
Maybe a commit hook [1] can be introduced which identifies the latest commit timestamp at "push" time and writes it into a file? [1] not sure if "commit hook" is the right wording, I think of some code that runs server side with each "git push"
There is at least one extension for Sphinx that determines the timestamp for each file from the Git history. I'd like to try all possibilities with this approach first, before I choose the path of an own implementation.
(In reply to Ingo Steuwer from comment #2) > Maybe a commit hook [1] can be introduced which identifies the latest commit > timestamp at "push" time and writes it into a file? Please no: our build infrastructure should remain stateless. And please try to not add any custom implementation someone has to maintain.