Skip to content
Snippets Groups Projects
Commit 21af9f11 authored by René Kijewski's avatar René Kijewski
Browse files

Make: do not spam error messages on shallow clones

> `--always`: Show uniquely abbreviated commit object as fallback.
parent ab08fbb5
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ endif
OBJ = $(SRC:%.c=$(BINDIR)$(MODULE)/%.o)
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)
ifeq ($(strip $(GIT_BRANCH)),master)
GIT_VERSION = $(GIT_STRING)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment