build: pass more arguments to git describe so that it always works even if detached branch, etc

Merges #441 https://github.com/espressif/esp-idf/pull/441
This commit is contained in:
Edmund Huber 2017-03-19 12:06:37 -07:00 committed by Angus Gratton
parent 36e685580a
commit 6a58e173b8

View file

@ -186,8 +186,7 @@ endif
@echo $(ESPTOOLPY_WRITE_FLASH) $(ESPTOOL_ALL_FLASH_ARGS)
# Git version of ESP-IDF (of the form v1.0-285-g5c4f707)
IDF_VER := $(shell git -C $(IDF_PATH) describe)
IDF_VER := $(shell git -C $(IDF_PATH) describe --always --tags --dirty)
# Set default LDFLAGS