Skip to content

Commit bf2d175

Browse files
committed
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.
1 parent 82e1caa commit bf2d175

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/run_integration_tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
echo "Running integration tests with $(git --version)"
4+
35
# This is ugly, but older versions of git don't support the GIT_CONFIG_GLOBAL
46
# env var; the only way to run tests for these old versions is to copy our test
57
# config file to the actual global location. Move an existing file out of the

0 commit comments

Comments
 (0)