gf-cli icon indicating copy to clipboard operation
gf-cli copied to clipboard

gf build 失败,getGitCommit 报错 Error: exit status 128

Open hjb0924 opened this issue 4 years ago • 0 comments

go版本 1.17.1 通过 gf-cli init 初始化的项目,由于本地没有初始化 git 和 git commit 记录, gf build 会报错终止。不知是否合理,3Q!

s, err := gproc.ShellExec(git log -1 --format="%cd %H" --date=format:"%Y-%m-%d %H:%M:%S")

报错日志: fatal: not a git repository (or any parent up to mount point /Volumes) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

hjb0924 avatar Dec 16 '21 08:12 hjb0924