# Getting submodules to follow symlinks?

2 messages from 2008-12-09 to 2008-12-09. Participants: Jonathan del Strother, Edward Z. Yang.
Thread: https://gitlist.dev/t/16654

## Jonathan del Strother, 2008-12-09 12:55

Subject: Getting submodules to follow symlinks?
Message-ID: <57518fd10812090455wd109843mfece11eae9e4f593@mail.gmail.com>
URL: https://gitlist.dev/e/57518fd10812090455wd109843mfece11eae9e4f593%40mail.gmail.com

```
My git repository contains a symlink to another repository.  I'd like
to make that second repository a submodule of the first, in such a way
that when someone else clones the repository, there's no trace of the
original symlink.

Is this possible?
-Jon

```

## Edward Z. Yang, 2008-12-09 17:29

Subject: Re: Getting submodules to follow symlinks?
Message-ID: <ghm9ts$hib$1@ger.gmane.org>
URL: https://gitlist.dev/e/ghm9ts%24hib%241%40ger.gmane.org
In-Reply-To: <57518fd10812090455wd109843mfece11eae9e4f593@mail.gmail.com>

```
Jonathan del Strother wrote:
> My git repository contains a symlink to another repository.  I'd like
> to make that second repository a submodule of the first, in such a way
> that when someone else clones the repository, there's no trace of the
> original symlink.

Yeah. If you register the submodule and then commit, the first
repository would contain the submodule information, and anyone who loads
submodules in another clone will not see the symlink.

Cheers,
Edward

```
