summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-06-13 11:58:00 +0200
committerHarald Hoyer <harald@redhat.com>2013-06-13 12:55:26 +0200
commit268ae2841b4506e81512758177aedea1f9e74fa7 (patch)
tree6cbcb6ff36bd86942228f7a69b62e9664499b95b /Makefile
parent638cad7c975fd2c5201dc6adc4b04e834713455f (diff)
downloaddracut-268ae2841b4506e81512758177aedea1f9e74fa7.tar.gz
dracut-268ae2841b4506e81512758177aedea1f9e74fa7.tar.bz2
dracut-268ae2841b4506e81512758177aedea1f9e74fa7.zip
Makefile: pipe git describe errors to /dev/null
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9e3ebc76..846c5db7 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