I have use git clone to get my hugo source code, and change dir to my source code dir.
And then i use hugo command to compile my hugo codes in CentOS Linux release 7.9.2009 (Core),I get this error such as
[root@k3s-master www.mydomain.cn]# hugo -v
Start building sites …
hugo v0.94.0-63B23660 linux/amd64 BuildDate=2022-03-10T09:46:36Z VendorInfo=gohugoio
INFO 2022/03/15 18:13:05 syncing static files to /root/www.mydomain/public/
ERROR 2022/03/15 18:13:05 Failed to read Git log: Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
Error: Error building site: logged 1 error(s)
Total in 289 ms
who one know this error how to resolve,can any one help me ?