Skip to content

Commit 90bc322

Browse files
authored
extension: fix enterprise git commit hash display in tidb-server -V (#47647) (#47652)
close #47646
1 parent 7256212 commit 90bc322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ LDFLAGS += -X "github.com/pingcap/tidb/util/versioninfo.TiDBGitBranch=$(shell gi
6767
LDFLAGS += -X "github.com/pingcap/tidb/util/versioninfo.TiDBEdition=$(TIDB_EDITION)"
6868

6969
EXTENSION_FLAG =
70-
ifeq ($(shell if [ -d extension/enterprise/.git ]; then echo "true"; fi),true)
70+
ifeq ($(shell if [ -f extension/enterprise/.git ]; then echo "true"; fi),true)
7171
EXTENSION_FLAG += -X "github.com/pingcap/tidb/util/versioninfo.TiDBEnterpriseExtensionGitHash=$(shell cd extension/enterprise && git rev-parse HEAD)"
7272
endif
7373

0 commit comments

Comments
 (0)