Not properly handling submodule meta information (.git-file contains relative path)
By curt.mo... on May 21, 2012 13:30 (imported from Google Code)
What steps will reproduce the problem?
- Add a submodule to an existing Git repository using MSysGit >= 1.7.8
- Notice that Git creates a .git file in the root of the submodule which references its .git directory in $GIT_DIR/modules/<name>/
- As a result, TortoiseGit is not properly showing overlay icons or the currently checked out branch name to the right of the "Git Commit" option in the context menu.
What is the expected output? What do you see instead?
I would expect to see icon overlays within the submodule directory and the currently checked out branch name within the context menus.
What version of the product are you using? On what operating system?
TortoiseGit 220.127.116.11 64 bit
git version 1.7.10.msysgit.1
Windows 7 64 bit
Please provide any additional information below.
Some dialogs such as "Show Log" and "Git Commit" recognize the branch of the submodule currently checked out, however it seems that not all TortoiseGit components are using the same source of information.
For repositories and submodules which were cloned prior to using MSysGit 1.7.8, everything works as expected and TortoiseGit displays everything properly.
Starting in Git 1.7.8, it appears that the .git directory for a submodule is placed within the modules directory in the .git directory of the parent Git repository ($GIT_DIR/modules/<name>/) instead of the root directory of the submodule itself. https://lkml.org/lkml/2011/12/2/316