core.worktree misinterpreted by Git GUI

Bug #1336230 reported by Martin Pecka
6
This bug affects 1 person
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 = ../../../tradr-ws/src/tradr-simulation ).

Now here's what's shown in CLI (CWD is the "external subrepo"):

--------------

D:\Programování\tradr-git\non-tradr-share\robot-model>git log
fatal: bad default revision 'HEAD'

D:\Programování\tradr-git\non-tradr-share\robot-model>git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        .gitignore
        README
        gazebo-test/
        nifti_robot_description/
        nifti_robot_gazebo/
        vrep_ugv_simulation/

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í\tradr-git\non-tradr-share\robot-model>git gui

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.

Revision history for this message
Martin Pecka (peci1) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.