1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-18 06:24:01 +03:00

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.
This commit is contained in:
Stefan Haller 2025-03-31 21:17:05 +02:00
parent 82e1caa166
commit bf2d175865

View File

@ -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