From b305f86ae44f37ed349ff6569c91b4d71cf8cc83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20K=C3=BCbler?= Date: Tue, 29 Apr 2014 07:58:57 +0200 Subject: [PATCH] infra: change buildtag to git describe for better legibility --- kernel/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/Makefile b/kernel/Makefile index 3dd78bc4..e16f2c4e 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -87,8 +87,8 @@ $(obj)/buildtag.h: $(patsubst $(obj)/buildtag.h,,$(wildcard $(obj)/*.[ch])) $(ob cd $(src); \ if [ -e DISTVERSION ]; then \ BUILDTAG=$$(cat DISTVERSION); \ - elif git rev-parse --git-dir >/dev/null 2>&1; then \ - BUILDTAG="$$(git rev-parse HEAD)"; \ + elif git describe --tags >/dev/null 2>&1; then \ + BUILDTAG="$$(git describe --tags)"; \ else \ BUILDTAG="no-buildtag-available"; \ fi; \