Fix issue with git during build

Git is reporting
fatal: detected dubious ownership in repository at '/src
This commit is contained in:
Martin Boehm 2023-02-01 17:18:04 +01:00 committed by Martin
parent c1256d22e9
commit 97f1a41e55

View File

@ -1,6 +1,6 @@
SHELL = /bin/bash
VERSION ?= devel
GITCOMMIT = $(shell cd /src && git describe --always --dirty)
GITCOMMIT = $(shell cd /src && git config --global --add safe.directory /src && git describe --always --dirty)
BUILDTIME = $(shell date --iso-8601=seconds)
LDFLAGS := -X github.com/trezor/blockbook/common.version=$(VERSION) -X github.com/trezor/blockbook/common.gitcommit=$(GITCOMMIT) -X github.com/trezor/blockbook/common.buildtime=$(BUILDTIME)
BLOCKBOOK_BASE := $(GOPATH)/src/github.com/trezor