1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00
Files
.devcontainer
.github
.vscode
cmd
docs
pkg
scripts
cheatsheet
bisect.sh
bump_gocui.sh
bump_lazycore.sh
bump_modules.sh
check_filenames.sh
run_integration_tests.sh
test
vendor
.gitignore
.golangci.yml
.goreleaser.yml
CODE-OF-CONDUCT.md
CONTRIBUTING.md
Dockerfile
LICENSE
README.md
go.mod
go.sum
main.go
lazygit/scripts/run_integration_tests.sh
2023-07-10 15:09:17 +02:00

21 lines
562 B
Bash
Executable File

#!/bin/sh
# 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
# way so that we can restore it at the end.
if test -f ~/.gitconfig; then
mv ~/.gitconfig ~/.gitconfig.lazygit.bak
fi
cp test/global_git_config ~/.gitconfig
go test pkg/integration/clients/*.go
EXITCODE=$?
if test -f ~/.gitconfig.lazygit.bak; then
mv ~/.gitconfig.lazygit.bak ~/.gitconfig
fi
exit $EXITCODE