I'm using gitinfo2 along with a post-commit hook in a LaTeX project to quote info about the latest git tag within the pdf. This works well on my computer, but fails when I push the repo to Gitlab.
It doesn't cause an error, but gives the following warning, which basically means that the git hook never executed.
Package gitinfo2 Warning: I can't find the file '.git/gitHeadInfo.gin'.
(gitinfo2) All git metadata has been set to '(None)'.
From what I've read online so far, client side git hooks don't execute on the server - but why not? Is there a way to solve this?