Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7600951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:02:43+00:00 2026-05-30T23:02:43+00:00

Recently in git 1.7.8, a change was introduced to handle submodules differently than before

  • 0

Recently in git 1.7.8, a change was introduced to “handle” submodules differently than before – https://lkml.org/lkml/2011/12/2/316

When populating a new submodule directory with “git submodule init”,
the $GIT_DIR metainformation directory for submodules is created inside
$GIT_DIR/modules// directory of the superproject and referenced
via the gitfile mechanism. This is to make it possible to switch
between commits in the superproject that has and does not have the
submodule in the tree without re-cloning.

So now, instead of cloning the submodule into the specified directory, instead a .git file is created and within it is this:

$ cat .git
gitdir: ../../../../.git/modules/app/src/emberlabs/openflame

My problem: I’m on git 1.7.9, and I need the files of the cloned submodule to be in my local clone exactly where I expect them, instead of where git dictates they should be – as was the behavior before git 1.7.8, where I could ls the submodule’s clone directory and find all files of the cloned commit present.

Any suggestions or ideas on how to…well, re-achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:02:45+00:00Added an answer on May 30, 2026 at 11:02 pm

    Found a solution to this.

    Editing the file the {$project_root}/.git/modules/{$submodule_path}/.git/config and removing the worktree line under [core], and copying over the entire .git directory from {$project_root}/.git/modules/{$submodule_path}/ into the submodule’s actual location (after deleting the .git file where the submodule was) and then running git checkout -f {$branch} seems to have pulled all files back up. Not entirely sure that it is a full solution however.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently used git-svn to clone an SVN repository, for the purposes of maintaining
I've recently used git svn and enjoyed it very much. Now I'm starting a
I've been playing around with Git recently to get a grasp of distributed version
I recently started using Git as my version control system for some Cocoa projects
I recently asked about keyword expansion in Git and I'm willing to accept the
I just recently got around to converting an old svn project to git. Everything
I'm a Git newbie. I recently moved a Rails project from Subversion to Git.
I have recently been writing git hooks for my project team. I would like
We recently moved from SVN to Git, but there's a single legacy branch that
I have just recently started git-tfs bridge and seems to work fine for a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.