From: Harald Hoyer Date: Thu, 13 Jun 2013 09:58:00 +0000 (+0200) Subject: Makefile: pipe git describe errors to /dev/null X-Git-Tag: 029~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=268ae2841b4506e81512758177aedea1f9e74fa7;p=thirdparty%2Fdracut.git Makefile: pipe git describe errors to /dev/null --- diff --git a/Makefile b/Makefile index 9e3ebc76d..846c5db77 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ RELEASEDVERSION = -- will be replaced by "make dist" -- -VERSION = $(shell [ -d .git ] && git describe --abbrev=0 --tags || echo $(RELEASEDVERSION)) -GITVERSION = $(shell [ -d .git ] && { v=$$(git describe --tags); echo -$${v\#*-}; } ) +VERSION = $(shell [ -d .git ] && git describe --abbrev=0 --tags 2>/dev/null || echo $(RELEASEDVERSION)) +GITVERSION = $(shell [ -d .git ] && { v=$$(git describe --tags 2>/dev/null); echo -$${v\#*-}; } ) -include Makefile.inc