diff mbox series

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

Message ID 20180716063216.20107-3-amitay@ozlabs.org
State Accepted
Headers show
Series [1/5] Makefile: Include header files for each target | expand

Commit Message

Amitay Isaacs July 16, 2018, 6:32 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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