From 21af9f11f9c28a02290f274e1e0840b014dd22d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= <rene.kijewski@fu-berlin.de> Date: Wed, 9 Apr 2014 12:38:27 +0200 Subject: [PATCH] Make: do not spam error messages on shallow clones > `--always`: Show uniquely abbreviated commit object as fallback. --- Makefile.base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.base b/Makefile.base index c26d16cbdb..ad46f5e7c7 100644 --- a/Makefile.base +++ b/Makefile.base @@ -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) -- GitLab