-
-
Notifications
You must be signed in to change notification settings - Fork 693
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
In a mutual bare-repo reference setup, gitui shows working-tree file changes while Git CLI reports there is no work tree.
Example mismatch:
git statusin/i4/repo0returns:fatal: this operation must be run in a work treegituiin/i4/repo0still shows many unstaged entries (HEAD,config,hooks/, etc.)
This is misleading because the repo is not in a valid work-tree state for normal file status operations.
To Reproduce
Steps to reproduce the behavior:
- Create two repos at fixed reproducible paths:
mkdir -p /i4/repo0 /i4/repo1
- Initialize and cross-link git directories:
cd /i4/repo0 git init --bare git init --separate-git-dir=../repo1 cd /i4/repo1 git init --bare git init --separate-git-dir=../repo0
- Verify CLI behavior in
/i4/repo0:Expected CLI output:cd /i4/repo0 git statusfatal: this operation must be run in a work tree - Run
gituiin the same path:cd /i4/repo0 gitui - Observe that
gituistill lists unstaged/untracked files.When Git reports no work tree,gituishould not show normal working-tree file changes. It should present an error/state consistent with Git CLI.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working