Browse Source

Make: do not spam error messages on shallow clones

> `--always`: Show uniquely abbreviated commit object as fallback.
dev/timer
René Kijewski 9 years ago
parent
commit
21af9f11f9
  1. 2
      Makefile.base

2
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)

Loading…
Cancel
Save