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

url.<base>.insteadOf used for server-side redirection?

From
PSPaul Sokolovsky <paul.sokolovsky@linaro.org>
Date
Mar 9, 2016, 09:33 UTC
Message-ID
<20160309163336.42161c01@x230>
Hello,

There's a nice git config directive url.insteadOf (https://www.kernel.org/pub/software/scm/git/docs/git-config.html , search for "insteadOf"). However, than man doesn't make it explicit if it can be used in server-side repository config, and all examples on the net appear to be about its usage on user's local side.

So, is the remote use supported? Like a user issues a git clone with one URL, but gets redirect to another URL and git client proceeds to clone from it. Our usecase is to redirect git:// clones to http:// to avoid some scalability issues.

If it's not supported, any chance it could be? Maybe it was discussed and voted down? Or voted up and someone has it in their queue? Note that the talk is about git-specific redirects, like redirecting one git protocol to another.

Thanks, Paul

Linaro.org | Open source software for ARM SoCs Follow Linaro: http://www.facebook.com/pages/Linaro http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog

Message 1 of 1 in “url.<base>.insteadOf used for server-side redirection?”
  1. Paul SokolovskyMar 9, 2016

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.