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

URL rewrites for submodules

From
Toon Claes <toon@iotcl.com>
Date
Feb 10, 2020, 20:56 UTC
Message-ID
<87wo8ucgar.fsf@iotcl.com>
Hi,

I recently learned about rewriting URLs. Pretty cool feature. Learned about it here: https://jonhnnyweslley.net/blog/how-to-rewrite-git-urls-to-clone-faster-and-push-safer/

But I've been doing some testing, and this feature does not seem to work for git submodules. Is it like that by design, so are there technical or practical limitation why we would not like to have this feature on submodules too?

If it's not by design, would you consider a contribution adding this feature? What should I then pay attention at? For example, should there be an option to enable/disable it for submodules, something like:

[url "http://new.url.example.com"]
     insteadOf = "old.url.example.com"
     submodules = true

-- Toon

Next: Junio C Hamano
Message 1 of 4 in “URL rewrites for submodules”
  1. Toon ClaesFeb 10, 2020
  2. Junio C HamanoFeb 10, 2020
  3. Toon ClaesFeb 11, 2020
  4. Jonathan NiederFeb 12, 2020

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.