# About the .gitmodules file

2 messages from 2008-01-02 to 2008-01-02. Participants: Imran M Yousuf, Miklos Vajna.
Thread: https://gitlist.dev/t/11448

## Imran M Yousuf, 2008-01-02 10:39

Subject: About the .gitmodules file
Message-ID: <7bfdc29a0801020239w6f4133d3pc6f1aa325b1067db@mail.gmail.com>
URL: https://gitlist.dev/e/7bfdc29a0801020239w6f4133d3pc6f1aa325b1067db%40mail.gmail.com

```
Hi All,

I need a help in order to parse the .gitmodules file generated on
"git-submodule add". An entry for a submodule in that file looks like:

    [submodule "a"]
            path = a
            url = /home/imyousuf/projects/git-projs/smart-sip/submodules/a/.git

I want to parse this file to know the location of my module so that
when I got git-commit on the parent project my script will also
traverse the submodule hierarchy. I wanted to know whether path = a
noted the relative path from the current directory or not.

Thanks in advance,

-- 
Imran M Yousuf

```

## Miklos Vajna, 2008-01-02 17:13

Subject: Re: About the .gitmodules file
Message-ID: <20080102171317.GE29972@genesis.frugalware.org>
URL: https://gitlist.dev/e/20080102171317.GE29972%40genesis.frugalware.org
In-Reply-To: <7bfdc29a0801020239w6f4133d3pc6f1aa325b1067db@mail.gmail.com>

```
On Wed, Jan 02, 2008 at 04:39:24PM +0600, Imran M Yousuf <imyousuf@gmail.com> wrote:
> "git-submodule add". An entry for a submodule in that file looks like:
> 
>     [submodule "a"]
>             path = a
>             url = /home/imyousuf/projects/git-projs/smart-sip/submodules/a/.git

that means:  the submodule is under /root_of_the_repo/a/ and the repo
should be cloned from $url (to a/) when one clones the parent repo and
runs git submodule init

- VMiklos

```
