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

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

Description

@hjb0924

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions