1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-08 04:04:22 +02:00
lazygit/pkg/tasks
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
..
async_handler_test.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
async_handler.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
tasks_test.go Remove secureexec package 2023-07-30 19:59:51 +10:00
tasks.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00