jesseduffield.lazygit/pkg/integration/tests/worktree
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
..
add_from_branch.go Fix bug where worktree view would take over window upon switching branches 2023-07-30 18:35:24 +10:00
add_from_branch_detached.go Add more worktree tests 2023-07-30 18:35:23 +10:00
add_from_commit.go Add more worktree tests 2023-07-30 18:35:23 +10:00
associate_branch_bisect.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
associate_branch_rebase.go Centralise logic for obtaining repo paths 2023-07-30 18:35:24 +10:00
bare_repo.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00
bare_repo_worktree_config.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
crud.go Add worktree integration tests 2023-07-30 18:35:23 +10:00
custom_command.go Add more worktree tests 2023-07-30 18:35:23 +10:00
detach_worktree_from_branch.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
dotfile_bare_repo.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00
double_nested_linked_submodule.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
fast_forward_worktree_branch.go Support fastforwarding worktree 2023-07-30 18:35:23 +10:00
force_remove_worktree.go Add worktree tests for removing/detaching 2023-07-30 18:35:23 +10:00
remove_worktree_from_branch.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
reset_window_tabs.go Update repo switch logic 2023-07-30 18:35:23 +10:00
symlink_into_repo_subdir.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
worktree_in_repo.go Add worktree integration tests 2023-07-30 18:35:23 +10:00