From 20d637697bb6a7575c12a5a043ff146c07bd21fe Mon Sep 17 00:00:00 2001 From: Akash Levy Date: Tue, 13 May 2025 20:43:03 -0700 Subject: [PATCH] Fix commit to be preqorsor commit --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d914a0a2a..a402baed6 100644 --- a/Makefile +++ b/Makefile @@ -191,7 +191,7 @@ CXXFLAGS += -DYOSYS_VER=\\"$(YOSYS_VER)\\" \ # back to calling git directly. TARBALL_GIT_REV := $(shell cat $(YOSYS_SRC)/.gitcommit) ifneq ($(findstring Format:,$(TARBALL_GIT_REV)),) -GIT_REV := $(shell GIT_DIR=$(YOSYS_SRC)/.git git rev-parse --short=9 HEAD || echo UNKNOWN) +GIT_REV := $(shell cd .. && git rev-parse --short=9 HEAD || echo UNKNOWN) else GIT_REV := $(TARBALL_GIT_REV) endif