Skip to content

Commit 1b9d83d

Browse files
authored
Merge pull request #1849 from CEED/jeremy/safe-describe
make - use root as safe dir for GIT_DESCRIBE
2 parents d1d166a + 2b0143a commit 1b9d83d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ $(OBJDIR)/ceed.pc : pkgconfig-prefix = $(prefix)
854854
-e "s:%opt%:$(OPT):" \
855855
-e "s:%libs_private%:$(pkgconfig-libs-private):" $< > $@
856856

857-
GIT_DESCRIBE = $(shell git describe --always --dirty 2>/dev/null || printf "unknown\n")
857+
GIT_DESCRIBE = $(shell git -c safe.directory=$PWD describe --always --dirty 2>/dev/null || printf "unknown\n")
858858

859859
$(OBJDIR)/interface/ceed-config.o: Makefile
860860
$(OBJDIR)/interface/ceed-config.o: CONFIGFLAGS += -DCEED_GIT_VERSION="\"$(GIT_DESCRIBE)\""

0 commit comments

Comments
 (0)