diff --git a/Makefile.include b/Makefile.include index ccab20d05bb12023e7edd9446e074bcab75ab046..0e3ac750a2b24caf86f380b1a85a798f2241be5c 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)