Merge pull request #990 from Kijewski/allow-shallow-clone

Make: do not spam error messages on shallow clones
This commit is contained in:
Martine Lenders 2014-04-15 08:45:03 +02:00
commit 47d3f8e7d5

View File

@ -9,7 +9,7 @@ endif
OBJ = $(SRC:%.c=$(BINDIR)$(MODULE)/%.o) OBJ = $(SRC:%.c=$(BINDIR)$(MODULE)/%.o)
DEP = $(SRC:%.c=$(BINDIR)$(MODULE)/%.d) DEP = $(SRC:%.c=$(BINDIR)$(MODULE)/%.d)
GIT_STRING := $(shell git describe --abbrev=4 --dirty=-`hostname`) GIT_STRING := $(shell git describe --always --abbrev=4 --dirty=-`hostname`)
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD) GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
ifeq ($(strip $(GIT_BRANCH)),master) ifeq ($(strip $(GIT_BRANCH)),master)
GIT_VERSION = $(GIT_STRING) GIT_VERSION = $(GIT_STRING)