From eaf6563753f60f2e276a45e528f61d46e22e3680 Mon Sep 17 00:00:00 2001 From: Will Chandler Date: Wed, 15 May 2024 09:15:19 -0400 Subject: [PATCH] Makefile: Add a phony target for git-filter-repo GitLab's tests build Gitaly from source, and may be in an environment where `git-filter-repo` is not readily available. Add a new target to our Makefile so that GitLab's tests can ensure that `git-filter-repo` is present. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 05588c3f5b..19003f4111 100644 --- a/Makefile +++ b/Makefile @@ -666,6 +666,9 @@ ${PROTOC_GEN_GITALY_LINT}: proto | ${TOOLS_DIR} ${PROTOC_GEN_GITALY_PROTOLIST}: | ${TOOLS_DIR} ${Q}go build -o $@ ${SOURCE_DIR}/tools/protoc-gen-gitaly-protolist +.PHONY: filter-repo +filter-repo: ${GIT_FILTER_REPO} + ${GIT_FILTER_REPO}: ${DEPENDENCY_DIR}/git-filter-repo.version | ${BUILD_DIR}/bin ${Q}${GIT} -c init.defaultBranch=master init ${GIT_QUIET} "${GIT_FILTER_REPO_SOURCE_DIR}" ${Q}${GIT} -C "${GIT_FILTER_REPO_SOURCE_DIR}" config remote.origin.url ${GIT_FILTER_REPO_REPO_URL} -- GitLab