You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lazygit is messed up when $GIT_DIR and $GIT_WORK_TREE is defined and not launched with --git-dir and --work-tree arguments.
Commits and files are displayed correctly but it's not possible to stage a file (or to run other commands), because the work-tree prefix is missing in the file's path (e.g. it tries to run git add file instead of git add worktree/file because worktree is undefined)
The issue can be fixed by explicitly defining the arguments: lazygit --git-dir=$GIT_DIR --work-tree=$GIT_WORK_TREE.
The text was updated successfully, but these errors were encountered:
Lazygit is messed up when
$GIT_DIR
and$GIT_WORK_TREE
is defined and not launched with--git-dir
and--work-tree
arguments.Commits and files are displayed correctly but it's not possible to stage a file (or to run other commands), because the work-tree prefix is missing in the file's path (e.g. it tries to run
git add file
instead ofgit add worktree/file
because worktree is undefined)The issue can be fixed by explicitly defining the arguments:
lazygit --git-dir=$GIT_DIR --work-tree=$GIT_WORK_TREE
.The text was updated successfully, but these errors were encountered: