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

Re: Relative submodule URLs vs. clone URL DWIMming

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 30, 2008, 22:27 UTC
Message-ID
<7vhc92f8ay.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<200808290101.20048.johan@herland.net>
Johan Herland <johan@herland.net> writes:
> ... But AFAICS, there's no way to get this information from the
> transport layer. I assume that the actual repo location is resolved on the
> remote side, and simply not communicated back to the local side.
Correct.
Show 7 quoted lines
> If we simply resolve submodule URLs against the _repo_ (i.e. the real origin
> URL) and not the work tree (if any), we get results that are coupled to
> whether we use bare or non-bare repos: Take, for example, your use
> of "../<path>" to make submodules live outside the (bare) superproject. If I
> now create a non-bare clone of this, I must move the submodule repos _into_
> my work tree, so that the submodule repos are available, if someone tries to
> clone from me.

I personally feel that cases that involve cloning from non-bare repositories (and in addition, DWIMmed repositories), with or without nested submodules, are not worth supporting.

Previous: Johan HerlandNext: Johan Herland
Message 4 of 8 in “Relative submodule URLs vs. clone URL DWIMming”
  1. Johan HerlandAug 27, 2008
  2. Mark LevedahlAug 28, 2008
  3. Johan HerlandAug 28, 2008
  4. Junio C HamanoAug 30, 2008
  5. Johan HerlandAug 30, 2008
  6. Junio C HamanoAug 30, 2008
  7. Bring local clone's origin URL in line with that of a remote cloneJohan Herland, Sep 1, 2008
  8. Junio C HamanoSep 2, 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.