core.worktree misinterpreted by Git GUI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have a "super-repository" tradr-simulation which contains several subfolders. I wanted to share some of the subfolders through another Git repository, so I created an "external subrepository" - the .git resides above tradr-simulation in the filesystem, and in its config I've set core.worktree to point to tradr-simulation (particularly worktree = ../../.
Now here's what's shown in CLI (CWD is the "external subrepo"):
--------------
D:\Programování
fatal: bad default revision 'HEAD'
D:\Programování
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore
README
nothing added to commit but untracked files present (use "git add" to track)
-------------
However, if I start Git GUI from the "external subrepo", it is somehow misled to think I wanted it to show the "super-repository". In the screenshot attached, you can see how Git GUI looks when called as:
D:\Programování
The window title as well as the Unstaged changes correspond to those of the "super-repo", even though I started Git GUI from the "external subrepo" directory.