How do I upgrade git submodules to the “gitfile” format?
Since version 1.7.8 git stores the repository information for a submodule inside the GIT_DIR of the containing repository. In the submodule .git now is a file with a “textual symlink” to the actual GIT_DIR (usuall something like:
It seems that git doesn’t update old submodules to fit this new standard.
- Tagging an old commit of a submodule with git
- Cannot checkout master branch from branch with submodule
- Is there a way to `git submodule add` a repo *without* cloning it?
- Is installing WordPress as a Git submodule a good idea?
- How do I clone a local repo with submodules?
- Swap git submodule with own fork
What is the recommended way of upgrading the format? Do I just:
- move the GIT_DIR of my submodule into the GIT_DIR of my containing repository and
- write the gitfile by hand
I’m asking because I’ve broken to many things by improvising. I suppose this has no impact whatsoever on how remotes store the repositories?