[Pdbg] [PATCH 2/5] Makefile: Avoid warnings if not in a git tree

Amitay Isaacs amitay at ozlabs.org
Mon Jul 16 16:32:13 AEST 2018


Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index a795926..7206fc2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
 AUTOMAKE_OPTIONS = foreign
 AM_MAKEFLAGS = --no-print-directory
 
-GIT_SHA1 ?= `git --work-tree=$(top_srcdir) --git-dir=$(top_srcdir)/.git describe --always --long --dirty || echo unknown`
+GIT_SHA1 ?= `git --work-tree=$(top_srcdir) --git-dir=$(top_srcdir)/.git describe --always --long --dirty 2>/dev/null || echo unknown`
 
 bin_PROGRAMS = pdbg optcmd_test
 
-- 
2.17.1



More information about the Pdbg mailing list