Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89ba0cb

Browse files
committed
Fix git version query
1 parent db387d5 commit 89ba0cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ gitwash-update:
8282

8383
#SPHINXBUILD="LANG=C sphinx-build"
8484
NUMPYVER:=$(shell $(PYTHON) -c "import numpy; print(numpy.version.git_revision[:7])" 2>/dev/null)
85-
GITVER ?= $(shell (cd ..; git rev-parse HEAD | cut -c1-7) || echo Unknown)
85+
GITVER ?= $(shell (cd ..; set -o pipefail && git rev-parse HEAD 2>/dev/null | cut -c1-7) || echo Unknown)
8686

8787
version-check:
8888
ifeq "$(GITVER)" "Unknown"

0 commit comments

Comments
 (0)