Skip to content

Commit 1a98726

Browse files
committed
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 <[email protected]>
1 parent 9873f67 commit 1a98726

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile.in

+1-2
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ ifneq ($(wildcard $(CFG_GIT)),)
146146
ifneq ($(wildcard $(CFG_GIT_DIR)),)
147147
CFG_VERSION += $(shell git --git-dir=$(CFG_GIT_DIR) log -1 \
148148
--pretty=format:'(%h %ci)')
149-
CFG_VER_HASH = $(shell git --git-dir=$(CFG_GIT_DIR) log -1 \
150-
--pretty=format:'%H')
149+
CFG_VER_HASH = $(shell git --git-dir=$(CFG_GIT_DIR) rev-parse HEAD)
151150
endif
152151
endif
153152

0 commit comments

Comments
 (0)