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:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-12-01 17:25:15 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-12-01 18:16:57 +0300
commitf275c972fa02faf0caa9b021f3c42e22becba8f5 (patch)
tree70159287a979482ef754fdf4d266875f678f9333 /Makefile
parenta61a48a6b88a1d00bb7a3e003486d27973e1f443 (diff)
Makefile: Use POSIX-compliant way to detect executable path
We're using which(1) to detect the location of the system-installed Git. This utility is not POSIX-compliant, which instead specifies that one ought to use command(3P) instead. Switch over to use `command -v` to fix the incompatibility and not depend on which(1) being installed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2724e80b0..8768cd1e9 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ INSTALL_DEST_DIR := ${DESTDIR}${bindir}
GIT_PREFIX ?= ${GIT_DEFAULT_PREFIX}
# Tools
-GIT := $(shell which git)
+GIT := $(shell command -v git)
GOIMPORTS := ${TOOLS_DIR}/goimports
GOFUMPT := ${TOOLS_DIR}/gofumpt
GOLANGCI_LINT := ${TOOLS_DIR}/golangci-lint