mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
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> |
||
|---|---|---|
| .. | ||
| confirm_on_quit.go | ||
| copy_confirmation_message_to_clipboard.go | ||
| copy_to_clipboard.go | ||
| direnv_approves_envrc.go | ||
| direnv_loaded_on_repo_switch.go | ||
| direnv_unloads_on_blocked_envrc.go | ||
| initial_open.go | ||
| recent_repos_on_launch.go | ||
| start_in_git_dir.go | ||