Skip to content

Commit 418341c

Browse files
authored
Doc: make html display the tag name instead of the commit hash. (#1835)
display the tag name instead of the commit hash.
1 parent cb54d0c commit 418341c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ endif
104104

105105
DOCDIR=html
106106

107-
GIT_HASH = $(shell git rev-parse --short HEAD)
107+
GIT_HASH := $(shell git describe --tags --exact-match 2>/dev/null || git rev-parse --short HEAD)
108108

109109
$(DOCDIR)/dependency_graph.pre:
110110
mkdir -p $(DOCDIR)

0 commit comments

Comments
 (0)