Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitinfo2 does not work when using a server (e.g. GitLab) to deploy #30

Open
bluprince13 opened this issue Jan 17, 2019 · 3 comments
Open

Comments

@bluprince13
Copy link

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?

@bluprince13
Copy link
Author

I've raised the question on StackOverflow.

@jcalov
Copy link

jcalov commented Jan 17, 2019

The post-commit hook is only a client-side hook. I think the git documentation should lead you in the right direction for server-side hooks:
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

@josephwright
Copy link

This repository is no longer active: please re-report issues at https://github.com/josephwright/gitinfo2/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants