Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 365
    • Issues 365
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #1193
Closed
Open
Created Aug 02, 2015 by Sven Strickroth@mrtuxOwner

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?

  1. Add a submodule to an existing Git repository using MSysGit >= 1.7.8
  2. Notice that Git creates a .git file in the root of the submodule which references its .git directory in $GIT_DIR/modules/<name>/
  3. 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 1.7.9.0 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

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking