From 973a0c0409632c78b600e428659fc4ae208db638 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Thu, 4 Jul 2019 00:14:30 -0700 Subject: [PATCH] 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 04a0d45050..2e2612c47c 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ include $(SRC_PATH)/rules.mak QEMU_PKGVERSION := $(if $(PKGVERSION),$(PKGVERSION),$(shell \ cd $(SRC_PATH); \ 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 \ echo "-dirty"; \ fi; \