Skip to content

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

@bluprince13

Description

@bluprince13

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions