Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2022-07-21 18:58:28 +0300
committerJohn Cai <jcai@gitlab.com>2022-07-25 17:40:57 +0300
commite6e4d4bfa095b8a63027038a0ca41f56289e5262 (patch)
tree2d01b42a3c2c623b8c299babb069c919422f5283
parent942d8298610eded70b5204863048617ee1c136cd (diff)
Makefile: Add section for environment variablesjc-add-docs-for-git-version
GIT_VERSION can be set to, for instance, run tests with a specific git version. Add a section to `make help` to display this.
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 74f078360..06cec69a8 100644
--- a/Makefile
+++ b/Makefile
@@ -145,6 +145,11 @@ GIT_EXECUTABLES += git
GIT_EXECUTABLES += git-remote-http
GIT_EXECUTABLES += git-http-backend
+## The version of Git to build and test Gitaly with when not used
+## WITH_BUNDLED_GIT=YesPlease. Can be set to an arbitrary Git revision with
+## tags, branches, and commit ids.
+GIT_VERSION ?=
+
# The default version is used in case the caller does not set the variable or
# if it is either set to the empty string or "default".
ifeq (${GIT_VERSION:default=},)
@@ -311,7 +316,8 @@ help:
{ desc = "" }' $(MAKEFILE_LIST) | sort | column -s: -t
${Q}echo ""
- ${Q}echo "These are common variables which can be overridden in config.mak:"
+ ${Q}echo "These are common variables which can be overridden in config.mak"
+ ${Q}echo "or by passing them to make directly as environment variables:"
${Q}echo ""
@ # Match all variables which have preceding `## ` comments and which are assigned via `?=`.