threads / discuss / 41645

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

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

## tl;dr

One message between Mar 9, 2016 and Mar 9, 2016.

replies: 0people: 1as markdown or json

Paul Sokolovsky· Mar 9, 2016, 09:33 UTC · lore
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

← back to recent threads