From 1a98726d073a24a38f46e5c7dc08cdcaa8f422ae Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Wed, 5 Jun 2013 19:14:00 +0530 Subject: [PATCH] Makefile.in: simplify logic for CFG_VER_HASH git log -1 --pretty=format:'%H' is a very convoluted way of saying git rev-parse HEAD. Signed-off-by: Ramkumar Ramachandra --- Makefile.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index f6b50b5491a..ca82f296022 100644 --- a/Makefile.in +++ b/Makefile.in @@ -146,8 +146,7 @@ ifneq ($(wildcard $(CFG_GIT)),) ifneq ($(wildcard $(CFG_GIT_DIR)),) CFG_VERSION += $(shell git --git-dir=$(CFG_GIT_DIR) log -1 \ --pretty=format:'(%h %ci)') - CFG_VER_HASH = $(shell git --git-dir=$(CFG_GIT_DIR) log -1 \ - --pretty=format:'%H') + CFG_VER_HASH = $(shell git --git-dir=$(CFG_GIT_DIR) rev-parse HEAD) endif endif