build: Fixup Git commit detector

For XQEMU, we do not currently use dotted-version notation style
tag names, instead we simply use the raw commit-id. This returns
the Makefile to the simple commit-id style.
This commit is contained in:
Matt Borgerson 2019-07-04 00:14:30 -07:00
parent bc049f43e1
commit 973a0c0409
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ include $(SRC_PATH)/rules.mak
QEMU_PKGVERSION := $(if $(PKGVERSION),$(PKGVERSION),$(shell \ QEMU_PKGVERSION := $(if $(PKGVERSION),$(PKGVERSION),$(shell \
cd $(SRC_PATH); \ cd $(SRC_PATH); \
if test -e .git; then \ if test -e .git; then \
git describe --match 'v*' 2>/dev/null | tr -d '\n'; \ git rev-parse --short HEAD 2>/dev/null | tr -d '\n'; \
if ! git diff-index --quiet HEAD &>/dev/null; then \ if ! git diff-index --quiet HEAD &>/dev/null; then \
echo "-dirty"; \ echo "-dirty"; \
fi; \ fi; \