From 97f1a41e554c1b470da9f1f684b141b58c27e1ce Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Wed, 1 Feb 2023 17:18:04 +0100 Subject: [PATCH] Fix issue with git during build Git is reporting fatal: detected dubious ownership in repository at '/src --- build/docker/bin/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/docker/bin/Makefile b/build/docker/bin/Makefile index c73045ce..9111e24e 100644 --- a/build/docker/bin/Makefile +++ b/build/docker/bin/Makefile @@ -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