Silence GIT_VERSION check.

This commit is contained in:
Themaister 2014-01-11 19:05:26 +01:00
parent 252efff8da
commit f7ea753f05
2 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ ifeq ($(NOUNUSED_VARIABLE), yes)
CFLAGS += -Wno-unused-variable
endif
GIT_VERSION := $(shell git rev-parse --short HEAD)
GIT_VERSION := $(shell git rev-parse --short HEAD 2>/dev/null)
ifneq ($(GIT_VERSION),)
DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION=\"$(GIT_VERSION)\"
OBJ += git_version.o

View File

@ -266,7 +266,7 @@ else
endif
endif
GIT_VERSION := $(shell git rev-parse --short HEAD)
GIT_VERSION := $(shell git rev-parse --short HEAD 2>/dev/null)
ifneq ($(GIT_VERSION),)
DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION=\"$(GIT_VERSION)\"
OBJ += git_version.o