From e73038f1fc904cd416a74c8de5ed724cc73314ee Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Sun, 11 Jul 2010 11:56:51 +0200 Subject: [PATCH] quiet git if .git is not there --- Makefile.defs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.defs b/Makefile.defs index edede349..cfd4a058 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -7,7 +7,9 @@ GIT = $(shell which git) SVNVERSION = $(shell which svnversion) ifneq ($(GIT),) - SCM_REV = $(shell if git --help describe |grep dirty 2>&1 >/dev/null ; then git describe --always --dirty; else git describe --always ; fi) + SCM_REV = $(shell if git --help describe |grep dirty 2>&1 >/dev/null ; \ + then git describe --always --dirty 2>/dev/null; \ + else git describe --always 2>/dev/null; fi) endif ifeq ($(SCM_REV),)