jesseduffield.lazygit/pkg/integration/tests/misc
Stefan Haller f141fcc570 Open the repo when lazygit is started in its .git dir
Running lazygit in a .git dir got you told you were in a bare repo,
which you weren't: the worktree was sitting right there, one directory
up. git's own convention is that a git dir called .git belongs to the
directory holding it — that's how `git worktree list` names the main
worktree — so ask that directory, and if it is a worktree, open the repo
we were really being asked about.

The git dirs that aren't called .git keep the answer they had. A linked
worktree's and a submodule's do have a worktree, but nothing we look at
says where, so we would be guessing; a bare repo's has none to find.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 11:15:01 +02:00
..
confirm_on_quit.go Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
copy_confirmation_message_to_clipboard.go Add "CopyToClipboard" command to ConfirmationController 2025-08-15 17:17:06 +02:00
copy_to_clipboard.go Cleanup: remove unnecessary code in test 2025-08-15 17:17:06 +02:00
direnv_approves_envrc.go Offer direnv .envrc approval from inside lazygit 2026-06-04 09:05:01 +02:00
direnv_loaded_on_repo_switch.go Load direnv environment when switching repos 2026-06-04 09:05:01 +02:00
direnv_unloads_on_blocked_envrc.go Offer direnv .envrc approval from inside lazygit 2026-06-04 09:05:01 +02:00
initial_open.go Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
recent_repos_on_launch.go [DATALAD RUNCMD] run codespell throughout fixing typos automagically 2024-08-27 18:03:00 +02:00
start_in_git_dir.go Open the repo when lazygit is started in its .git dir 2026-08-08 11:15:01 +02:00