From bf2d175865f4e4ffba46f39ba146103eb185a2ee Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Mon, 31 Mar 2025 21:17:05 +0200 Subject: [PATCH] Print which git version we are using for running integration tests I usually use something like PATH=~/git-versions/2.22.0/bin:$PATH ./scripts/run_integration_tests.sh for running integration tests with an older version. This has the problem that when you specify a version that you don't have locally, it will silently use the current version. Guard against that by printing the version it is using. --- scripts/run_integration_tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/run_integration_tests.sh b/scripts/run_integration_tests.sh index d7c45257d..579e6d77c 100755 --- a/scripts/run_integration_tests.sh +++ b/scripts/run_integration_tests.sh @@ -1,5 +1,7 @@ #!/bin/sh +echo "Running integration tests with $(git --version)" + # This is ugly, but older versions of git don't support the GIT_CONFIG_GLOBAL # env var; the only way to run tests for these old versions is to copy our test # config file to the actual global location. Move an existing file out of the