mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-10 18:57:57 +08:00
build: fix build when we don't have a full git tree
When building with docker, we don't have a _full_ git repo.
This commit is contained in:
parent
4e981576b7
commit
77298e1e90
@ -1,2 +1,4 @@
|
||||
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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user