Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

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

Open
hjb0924 opened this issue Dec 16, 2021 · 0 comments
Open

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

hjb0924 opened this issue Dec 16, 2021 · 0 comments

Comments

@hjb0924
Copy link

hjb0924 commented Dec 16, 2021

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant