diff options
author | Harald Hoyer <harald@redhat.com> | 2013-06-13 11:58:00 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-06-13 12:55:26 +0200 |
commit | 268ae2841b4506e81512758177aedea1f9e74fa7 (patch) | |
tree | 6cbcb6ff36bd86942228f7a69b62e9664499b95b /Makefile | |
parent | 638cad7c975fd2c5201dc6adc4b04e834713455f (diff) | |
download | dracut-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |