]> git.maquefel.me Git - brevno-suite/hugo/commit
hugolib: gitinfo: use contentDir not workingDir
authorNikita Shubin <nikita.shubin@maquefel.me>
Sat, 25 Apr 2026 13:36:43 +0000 (16:36 +0300)
committerNikita Shubin <nikita.shubin@maquefel.me>
Sat, 25 Apr 2026 13:36:43 +0000 (16:36 +0300)
commitd3bb1c71399bed513bb3bf985c07f1c91ae8069f
tree405e8fe590aadf6eb1e00684677d13a2d8f8715d
parent90d8bf34aea897a8a329480bde54ff1c61c0c9b3
hugolib: gitinfo: use contentDir not workingDir

gitinfo searches workingDir by default and that's not what we want, if
we specify content directory during build, we want .git information from
that directory also.

Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
hugolib/gitinfo.go