summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-07-18 12:20:35 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-07-18 12:20:35 -0700
commit5571d085b3c9c2aa9470a10bcf2b8518d3e4ec99 (patch)
tree5f1fc694b5ba489621b27cc34a6373e6110d5faa
parentMerge branch 'sb/mailmap' (diff)
parentMakefile: fix the "built from commit" code (diff)
downloadtgif-5571d085b3c9c2aa9470a10bcf2b8518d3e4ec99.tar.xz
Merge branch 'js/enhanced-version-info'
Build fix. * js/enhanced-version-info: Makefile: fix the "built from commit" code
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3b1effb4ca..08e5c54549 100644
--- a/Makefile
+++ b/Makefile
@@ -2021,8 +2021,9 @@ version.sp version.s version.o: GIT-VERSION-FILE GIT-USER-AGENT
version.sp version.s version.o: EXTRA_CPPFLAGS = \
'-DGIT_VERSION="$(GIT_VERSION)"' \
'-DGIT_USER_AGENT=$(GIT_USER_AGENT_CQ_SQ)' \
- '-DGIT_BUILT_FROM_COMMIT="$(shell GIT_CEILING_DIRECTORIES=\"$(CURDIR)/..\" \
- git rev-parse -q --verify HEAD || :)"'
+ '-DGIT_BUILT_FROM_COMMIT="$(shell \
+ GIT_CEILING_DIRECTORIES="$(CURDIR)/.." \
+ git rev-parse -q --verify HEAD 2>/dev/null)"'
$(BUILT_INS): git$X
$(QUIET_BUILT_IN)$(RM) $@ && \