1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-21 17:57:00 +02:00
lazygit/test
John Whitley 3d9f1e02e5 Refactor repo_paths.go to use git rev-parse
This changes GetRepoPaths() to pull information from `git rev-parse`
instead of effectively reimplementing git's logic for pathfinding. This
change fixes issues with bare repos, esp. versioned homedir use cases,
by aligning lazygit's path handling to what git itself does.

This change also enables lazygit to run from arbitrary subdirectories of
a repository, including correct handling of symlinks, including "deep"
symlinks into a repo, worktree, a repo's submodules, etc.

Integration tests are now resilient against unintended side effects from
the host's environment variables. Of necessity, $PATH and $TERM are the
only env vars allowed through now.
2024-01-24 08:40:01 +01:00
..
default_test_config Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
files cleanup integration test code 2023-02-26 12:54:13 +11:00
.gitconfig Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
global_git_config cleanup integration test code 2023-02-26 12:54:13 +11:00
README.md cleanup integration test code 2023-02-26 12:54:13 +11:00

This directory contains some files used by out integration tests. The tests themselves live in /pkg/integration/. See here for more info