gitgit-submodulesgit-bare

What is stored in bare repositories regarding submodules?


I'm trying to write a tool that inspects some git repositories.

I wondered what information is stored in a bare repository that regards submodules?

So far I assume that it's only the .gitmodules file. Would be nice if anyone could confirm this.


Solution

  • Correct, .gitmodules is a file within the repository, you can't directly access it within a bare repo, but you can obtain it with git show HEAD:.gitmodules.