Skip to content

Commit d43ae72

Browse files
committedMay 5, 2022
8286105: SourceRevision.gmk should respect GIT variable
Reviewed-by: sgehwolf, erikj
1 parent 7d54508 commit d43ae72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎make/SourceRevision.gmk

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -50,8 +50,8 @@ else ifneq ($(and $(GIT), $(wildcard $(TOPDIR)/.git)), )
5050
USE_SCM := true
5151
SCM_DIR := .git
5252
ID_COMMAND := $(PRINTF) "git:%s%s\n" \
53-
"$$(git log -n1 --format=%H | cut -c1-12)" \
54-
"$$(if test -n "$$(git status --porcelain)"; then printf '+'; fi)"
53+
"$$($(GIT) log -n1 --format=%H | cut -c1-12)" \
54+
"$$(if test -n "$$($(GIT) status --porcelain)"; then printf '+'; fi)"
5555
endif
5656

5757
ifeq ($(USE_SCM), true)

0 commit comments

Comments
 (0)