From 9d9d2aff93860c312e6211abd6c94e31a50b30cc Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Wed, 30 Jul 2014 15:33:07 +0200 Subject: [PATCH] make: make RIOT_VERSION fail-safe --- Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index ccab20d05b..0e3ac750a2 100644 --- a/Makefile.include +++ b/Makefile.include @@ -65,7 +65,7 @@ include $(RIOTBASE)/Makefile.cflags # make the RIOT version available to the program ifeq ($(origin RIOT_VERSION), undefined) - GIT_STRING := $(shell git describe --always --abbrev=4 --dirty=-`hostname`) + GIT_STRING := $(shell git describe --always --abbrev=4 --dirty=-`hostname` 2> /dev/null) ifneq (,$(GIT_STRING)) GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD) ifeq ($(strip $(GIT_BRANCH)),master)