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

Re: serving git with both "git:" and "http:" and submodules

From
Brad King <brad.king@kitware.com>
Date
Jul 15, 2010, 14:07 UTC
Message-ID
<4C3F1617.7020706@kitware.com>
In-Reply-To
<20100714153900.GB1583@burratino>
On 07/14/2010 11:39 AM, Jonathan Nieder wrote:
> Boaz Harrosh wrote:
>> So my question is: Can I automate this so people with "http:"
>> clones are not forced to manually edit their config files?
Almost.
> Of course, even this would not make
> 'git clone --recursive http://my-domain.org/trees/my-tree/.git'
> work.
Firewall-ed users can just run
$ git config --global url.http://my-domain.org/.insteadOf git://my-domain.org/
*once* per user per machine, or even
$ git config --global url.http.insteadOf git

if they want to be really aggressive. After that they can just pretend to use the git protocol and all URLs will be mapped under the hood:

  git clone --recursive git://my-domain.org/...
-Brad
Previous: Jonathan NiederNext: Peter Krefting
Message 5 of 12 in “serving git with both "git:" and "http:" and submodules”
  1. Boaz HarroshJul 14, 2010
  2. Jonathan NiederJul 14, 2010
  3. Boaz HarroshJul 14, 2010
  4. Jonathan NiederJul 14, 2010
  5. Brad KingJul 15, 2010
  6. Peter KreftingJul 15, 2010
  7. gitmodules.5: url can be a relative pathJonathan Nieder, Jul 15, 2010
  8. Documentation: add submodule.* to the big configuration variable listJonathan Nieder, Jul 15, 2010
  9. Johan HerlandJul 15, 2010
  10. Jonathan NiederJul 15, 2010
  11. Johan HerlandJul 15, 2010
  12. Boaz HarroshJul 15, 2010

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.