git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git submodule enhancements

From
LHLars Hjemli <hjemli@gmail.com>
Date
Sep 24, 2008, 09:25 UTC
Message-ID
<8c5c35580809240225ld59fe28g10ecd09d1962ef3c@mail.gmail.com>
In-Reply-To
<8c5c35580809240213v5198d2abh489915dc1133c75@mail.gmail.com>
On Wed, Sep 24, 2008 at 11:13 AM, Lars Hjemli <hjemli@gmail.com> wrote:
Show 16 quoted lines
> On Wed, Sep 24, 2008 at 10:00 AM, P. Christeas <p_christ@hol.gr> wrote:
> +                       # Cloned mode: we try to figure out the submodule
> +                       # path in the remote origin.
> +                       # FIXME: we do use "../" because the remote is the .git/
> +                       url=$(resolve_relative_url "../$path/.git")
> +               fi
> +
>                git config submodule."$name".url "$url" ||
>                die "Failed to register url for submodule path '$path'"
> --
> 1.6.0.1
>
>
> It looks like --cloned requires the downstream to know which
> submodules are available from the same remote as the supermodule (and
> with the same path as registered in the supermodule)

Hmm, after reading through this once more I guess you're trying to clone a non-bare repository, possibly also lacking a .gitmodules file (hence the --force)?

-- larsh

Previous: Lars HjemliNext: Lars Hjemli
Message 2 of 5 in “Re: Git submodule enhancements”
  1. Lars HjemliSep 24, 2008
  2. Lars HjemliSep 24, 2008
  3. Lars HjemliSep 24, 2008
  4. P. ChristeasSep 24, 2008
  5. René ScharfeSep 24, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.