# submodules

2 messages from 2013-05-03 to 2013-05-03. Participants: shawn wilson, Jens Lehmann.
Thread: https://gitlist.dev/t/33714

## shawn wilson, 2013-05-03 13:45

Subject: submodules
Message-ID: <CAH_OBieziOGOJrr=wFS-DbMOH=qzmECDziT9hQNX5GxKvNhGyw@mail.gmail.com>
URL: https://gitlist.dev/e/CAH_OBieziOGOJrr%3DwFS-DbMOH%3DqzmECDziT9hQNX5GxKvNhGyw%40mail.gmail.com

```
So, I actually have another question I wasn't able to get to in this
example (which has color - sorry - less -F displays it decently)

What is shown here is that trying to add submodules in this repo
doesn't add the .gitmodules file - I can do it manually, but why isn't
it adding the file? There's a .git/modules directory populated with
the right stuff, but no .gitmodules file.

The initial question I was trying to demonstrate was that I've got a
repo with submodules. When I push branches to most of the modules, a:
git branch -r shows them for everyone. However, in one repo/module (I
think it's a repo created with git --bare --shared) no one else can
see (or pull) the remote branches and if I make a new clone of that
repo as myself, I can't see them either. However, those branches are
there and if I check that repo out on its own (not as a submodule of
the main repo) I and everyone else can see those remote branches.

This is git 1.8.2.1 btw.

```

## Jens Lehmann, 2013-05-03 19:51

Subject: Re: submodules
Message-ID: <51841558.4080004@web.de>
URL: https://gitlist.dev/e/51841558.4080004%40web.de
In-Reply-To: <CAH_OBieziOGOJrr=wFS-DbMOH=qzmECDziT9hQNX5GxKvNhGyw@mail.gmail.com>

```
Am 03.05.2013 15:45, schrieb shawn wilson:
> So, I actually have another question I wasn't able to get to in this
> example (which has color - sorry - less -F displays it decently)
> 
> What is shown here is that trying to add submodules in this repo
> doesn't add the .gitmodules file - I can do it manually, but why isn't
> it adding the file? There's a .git/modules directory populated with
> the right stuff, but no .gitmodules file.
> 
> The initial question I was trying to demonstrate was that I've got a
> repo with submodules. When I push branches to most of the modules, a:
> git branch -r shows them for everyone. However, in one repo/module (I
> think it's a repo created with git --bare --shared) no one else can
> see (or pull) the remote branches and if I make a new clone of that
> repo as myself, I can't see them either. However, those branches are
> there and if I check that repo out on its own (not as a submodule of
> the main repo) I and everyone else can see those remote branches.
> 
> This is git 1.8.2.1 btw.

Thanks for your report. Unfortunately I'm not able to see much in
your attachment, could you please try to reproduce your problem with
a few shell commands and send these inline?

```
