提交 aba6c3d2 作者: Steven Allen

build: fix build when we don't have a full git tree

When building with docker, we don't have a _full_ git repo.
上级 5b44f480
git-hash:=$(shell git describe --always --match=NeVeRmAtCh --dirty 2>/dev/null)
# First try to "describe" the state. This tells us if the state is dirty.
# If that fails (e.g., we're building a docker image and have an empty objects
# directory), assume the source isn't dirty and build anyways.
git-hash:=$(shell git describe --always --match=NeVeRmAtCh --dirty 2>/dev/null || git rev-parse --short HEAD 2>/dev/null)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论