From d43ae723b869e13d30f4ca0cf3d41349bc29bdc7 Mon Sep 17 00:00:00 2001 From: Yasumasa Suenaga Date: Thu, 5 May 2022 00:27:42 +0000 Subject: [PATCH] 8286105: SourceRevision.gmk should respect GIT variable Reviewed-by: sgehwolf, erikj --- make/SourceRevision.gmk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/make/SourceRevision.gmk b/make/SourceRevision.gmk index 8b757b29621..400b267530a 100644 --- a/make/SourceRevision.gmk +++ b/make/SourceRevision.gmk @@ -1,5 +1,5 @@ # -# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -50,8 +50,8 @@ else ifneq ($(and $(GIT), $(wildcard $(TOPDIR)/.git)), ) USE_SCM := true SCM_DIR := .git ID_COMMAND := $(PRINTF) "git:%s%s\n" \ - "$$(git log -n1 --format=%H | cut -c1-12)" \ - "$$(if test -n "$$(git status --porcelain)"; then printf '+'; fi)" + "$$($(GIT) log -n1 --format=%H | cut -c1-12)" \ + "$$(if test -n "$$($(GIT) status --porcelain)"; then printf '+'; fi)" endif ifeq ($(USE_SCM), true)