a long time ago i enabled the enableGitInfo option which went fine nicely. Recently something had changed on my local development pc (and i’m sorry i couldn’t determine (yet) what exactly) and suddenly i get this when running hugo --enableGitInfo
Building sites … ERROR 2019/06/11 17:38:13 Failed to read Git log: fatal: unknown error occured while reading the configuration files
Running git log from the same user works perfectly fine in all variants so i’m wondering how i could debug the case further?
Try passing the -v flag to hugo to get more output.
If you see nothing useful there, it may be worth pushing all your changes to remote repo, then deleting your local repo and recloning.
Thanks for your reply. Unfortunately the “-v” doesn’t add any output in regards to that error. Also i did try to clone the repo again from my remote - didn’t lead to different results in the error output.
I debugged further and it seems as if the process has an issue with a global gitconfig. If i remove it, hugo works properly. We recently had a change where LFS is filtered by default: