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

Re: Relative submodule URLs vs. clone URL DWIMming

From
Johan Herland <johan@herland.net>
Date
Aug 30, 2008, 23:23 UTC
Message-ID
<200808310123.48018.johan@herland.net>
In-Reply-To
<7vhc92f8ay.fsf@gitster.siamese.dyndns.org>
On Sunday 31 August 2008, Junio C Hamano wrote:
> Johan Herland <johan@herland.net> writes:
> 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.

Ok. I guess that's fair. Such a decision should definitely be documented appropriately in the submodule documentation, though.

I guess this also means you don't plan to do anything about the difference in origin URLs produced by "git clone" for the following two cases:

$ git clone /repo/foo bar
$ grep -B1 url bar/.git/config
[remote "origin"]
        url = /repo/foo/.git
vs.
$ git clone file:///repo/foo bar
$ grep -B1 url bar/.git/config
[remote "origin"]
        file:///home/johan/git/foo
Hmm?
...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 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.