[4.1] 44f5299 Use the complete commit hash in the version string
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Tue Oct 31 11:02:05 UTC 2017
commit 44f5299c374d57f5a8a7d09ca4371a3f868d8822
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Oct 31 11:40:39 2017 +0100
Use the complete commit hash in the version string
Fixes #2468
diff --git a/include/Makefile.am b/include/Makefile.am
index ced33c8..2ac2e0f 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -101,7 +101,7 @@ BUILT_SOURCES = vcs_version.h vmod_abi.h
MAINTAINERCLEANFILES = vcs_version.h
vcs_version.h: FORCE
@if [ -d "$(top_srcdir)/.git" ]; then \
- V="$$(git show -s --pretty=format:%h)" \
+ V="$$(git show -s --pretty=format:%H)" \
B="$$(git rev-parse --abbrev-ref HEAD)" \
H="$$(head -n 1 vcs_version.h 2>/dev/null || true)"; \
if [ "/* $$V */" != "$$H" ]; then \
More information about the varnish-commit
mailing list